Skip to content

Commit

Permalink
Merge branch 'master' into http
Browse files Browse the repository at this point in the history
Conflicts:
	.gitmodules
  • Loading branch information
arfon committed Jan 8, 2015
2 parents 14740e8 + 7e319b7 commit 08558aa
Show file tree
Hide file tree
Showing 42 changed files with 1,616 additions and 77 deletions.
16 changes: 12 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@
[submodule "vendor/grammars/language-python"]
path = vendor/grammars/language-python
url = https://github.com/atom/language-python
[submodule "vendor/grammars/language-sass"]
path = vendor/grammars/language-sass
url = https://github.com/atom/language-sass
[submodule "vendor/grammars/language-shellscript"]
path = vendor/grammars/language-shellscript
url = https://github.com/atom/language-shellscript
Expand Down Expand Up @@ -506,7 +503,6 @@
[submodule "vendor/grammars/sublime-mask"]
path = vendor/grammars/sublime-mask
url = https://github.com/tenbits/sublime-mask
branch = release
[submodule "vendor/grammars/sublime_cobol"]
path = vendor/grammars/sublime_cobol
url = https://bitbucket.org/bitlang/sublime_cobol
Expand Down Expand Up @@ -535,3 +531,15 @@
[submodule "vendor/grammars/Sublime-HTTP"]
path = vendor/grammars/Sublime-HTTP
url = https://github.com/httpspec/sublime-highlighting
[submodule "vendor/grammars/sass-textmate-bundle"]
path = vendor/grammars/sass-textmate-bundle
url = https://github.com/nathos/sass-textmate-bundle
[submodule "vendor/grammars/carto-atom"]
path = vendor/grammars/carto-atom
url = https://github.com/yohanboniface/carto-atom
[submodule "vendor/grammars/Sublime-Nit"]
path = vendor/grammars/Sublime-Nit
url = https://github.com/R4PaSs/Sublime-Nit
[submodule "vendor/grammars/language-hy"]
path = vendor/grammars/language-hy
url = https://github.com/rwtolbert/language-hy
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
before_install:
- git fetch origin master:master
- git fetch origin v2.0.0:v2.0.0
- git fetch origin test/attributes:test/attributes
- git fetch origin test/master:test/master
- sudo apt-get install libicu-dev -y
- git submodule init
- git submodule sync --quiet
- script/fast-submodule-update
sudo: false
before_install: script/travis/before_install
rvm:
- 1.9.3
- 2.0.0
Expand All @@ -16,3 +9,4 @@ notifications:
disabled: true
git:
submodules: false
cache: bundler
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Great! You'll need to:
0. Add an entry for your language to [`languages.yml`][languages].
0. Add a grammar for your language. Please only add grammars that have a license that permits redistribution.
0. Add your grammar as a submodule: `git submodule add https://github.com/JaneSmith/MyGrammar vendor/grammars/MyGrammar`.
0. Add your grammar to [`grammars.yml`][grammars] by running `script/download-grammars --add vendor/grammars/MyGrammar`.
0. Add your grammar to [`grammars.yml`][grammars] by running `script/convert-grammars --add vendor/grammars/MyGrammar`.
0. Add samples for your language to the [samples directory][samples].

In addition, if your new language defines an extension that's already listed in [`languages.yml`][languages] (such as `.foo`) then sometimes a few more steps will need to be taken:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ end

task :build_grammars_gem do
rm_rf "grammars"
sh "script/download-grammars"
sh "script/convert-grammars"
sh "gem", "build", "github-linguist-grammars.gemspec"
end

Expand Down
18 changes: 12 additions & 6 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ vendor/grammars/LiveScript.tmbundle:
vendor/grammars/NSIS:
- source.nsis
vendor/grammars/NimLime:
- source.nimrod
- source.nimrod_filter
- source.nimrodcfg
- source.nim
- source.nim_filter
- source.nimcfg
vendor/grammars/PHP-Twig.tmbundle:
- text.html.twig
vendor/grammars/RDoc.tmbundle:
Expand All @@ -76,6 +76,8 @@ vendor/grammars/Sublime-Logos:
- source.logos
vendor/grammars/Sublime-Loom:
- source.loomscript
vendor/grammars/Sublime-Nit:
- source.nit
vendor/grammars/Sublime-QML:
- source.qml
vendor/grammars/Sublime-REBOL:
Expand Down Expand Up @@ -138,6 +140,8 @@ vendor/grammars/c.tmbundle:
- source.c.platform
vendor/grammars/capnproto.tmbundle:
- source.capnp
vendor/grammars/carto-atom:
- source.css.mss
vendor/grammars/ceylon-sublimetext:
- module.ceylon
- source.ceylon
Expand Down Expand Up @@ -255,16 +259,16 @@ vendor/grammars/language-csharp:
- source.nant-build
vendor/grammars/language-gfm:
- source.gfm
vendor/grammars/language-hy:
- source.hy
vendor/grammars/language-javascript:
- source.js
- source.js.regexp
vendor/grammars/language-python:
- source.python
- source.regexp.python
- text.python.console
- text.python.traceback
vendor/grammars/language-sass:
- source.css.scss
- source.sass
vendor/grammars/language-shellscript:
- source.shell
- text.shell-session
Expand Down Expand Up @@ -376,6 +380,8 @@ vendor/grammars/ruby.tmbundle:
vendor/grammars/sas.tmbundle:
- source.SASLog
- source.sas
vendor/grammars/sass-textmate-bundle:
- source.sass
vendor/grammars/scala.tmbundle:
- source.sbt
- source.scala
Expand Down
2 changes: 1 addition & 1 deletion lib/linguist/heuristics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def call(data)
disambiguate "Frege", "Forth", "Text" do |data|
if /^(: |also |new-device|previous )/.match(data)
Language["Forth"]
elsif /\s*(import|module|package|data|type) /.match(data)
elsif /^\s*(import|module|package|data|type) /.match(data)
Language["Frege"]
else
Language["Text"]
Expand Down
34 changes: 23 additions & 11 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,13 @@ Cap'n Proto:
ace_mode: text

CartoCSS:
type: programming
aliases:
- Carto
extensions:
- .mss
ace_mode: text
tm_scope: none
tm_scope: source.css.mss

Ceylon:
type: programming
Expand Down Expand Up @@ -1267,13 +1268,13 @@ Haxe:

Hy:
type: programming
ace_mode: clojure
ace_mode: text
color: "#7891b1"
extensions:
- .hy
aliases:
- hylang
tm_scope: none
tm_scope: source.hy

IDL:
type: programming
Expand Down Expand Up @@ -1381,13 +1382,6 @@ JSON:
extensions:
- .json
- .lock
- .sublime-keymap
- .sublime-mousemap
- .sublime-project
- .sublime-settings
- .sublime-workspace
- .sublime_metrics
- .sublime_session
filenames:
- .jshintrc
- composer.lock
Expand Down Expand Up @@ -1471,6 +1465,19 @@ JavaScript:
- .pac
- .sjs
- .ssjs
- .sublime-build
- .sublime-commands
- .sublime-completions
- .sublime-keymap
- .sublime-macro
- .sublime-menu
- .sublime-mousemap
- .sublime-project
- .sublime-settings
- .sublime-theme
- .sublime-workspace
- .sublime_metrics
- .sublime_session
- .xsjs
- .xsjslib
filenames:
Expand Down Expand Up @@ -1891,6 +1898,7 @@ Nimrod:
- .nim
- .nimrod
ace_mode: text
tm_scope: source.nim

Ninja:
type: data
Expand All @@ -1904,7 +1912,7 @@ Nit:
color: "#0d8921"
extensions:
- .nit
tm_scope: none
tm_scope: source.nit
ace_mode: text

Nix:
Expand Down Expand Up @@ -2620,6 +2628,8 @@ SQL:
ace_mode: sql
extensions:
- .sql
- .cql
- .ddl
- .prc
- .tab
- .udf
Expand Down Expand Up @@ -3129,6 +3139,8 @@ XML:
- .rss
- .scxml
- .srdf
- .stTheme
- .sublime-snippet
- .svg
- .targets
- .tmCommand
Expand Down
2 changes: 1 addition & 1 deletion lib/linguist/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Linguist
VERSION = "4.2.5"
VERSION = "4.2.6"
end
Loading

0 comments on commit 08558aa

Please sign in to comment.