From e8e82a1ca3cd45fbb31e323625c4cf0bb529c550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Fri, 2 Jan 2015 14:27:22 +0100 Subject: [PATCH] Add grammar for CartoCSS --- .gitmodules | 3 +++ grammars.yml | 2 ++ lib/linguist/languages.yml | 3 ++- vendor/grammars/carto-atom | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 160000 vendor/grammars/carto-atom diff --git a/.gitmodules b/.gitmodules index 5c0588bc..fe68f3d7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -531,3 +531,6 @@ [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 diff --git a/grammars.yml b/grammars.yml index 8bfbf4dc..222859f1 100644 --- a/grammars.yml +++ b/grammars.yml @@ -136,6 +136,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 diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 9005eabb..d8cd6824 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -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 diff --git a/vendor/grammars/carto-atom b/vendor/grammars/carto-atom new file mode 160000 index 00000000..2ec5a892 --- /dev/null +++ b/vendor/grammars/carto-atom @@ -0,0 +1 @@ +Subproject commit 2ec5a892ed06c6c8cddb890ed52465a19ea68f9f