Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jisaacks committed Apr 30, 2013
0 parents commit 2491c9f
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.cache
158 changes: 158 additions & 0 deletions coffeescript-haml.JSON-tmLanguage
@@ -0,0 +1,158 @@
{
"fileTypes": [
"hamlc"
],
"foldingStartMarker": "^\\s*([-%#\\:\\.\\w\\=].*)\\s$",
"foldingStopMarker": "^\\s*$",
"keyEquivalent": "^~H",
"name": "Coffee Haml",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.prolog.haml"
}
},
"match": "^(!!!)($|\\s.*)",
"name": "meta.prolog.haml"
},
{
"captures": {
"1": {
"name": "punctuation.section.comment.haml"
}
},
"match": "^ *(/)\\s*\\S.*$\\n?",
"name": "comment.line.slash.haml"
},
{
"begin": "^( *)(/)\\s*$",
"beginCaptures": {
"2": {
"name": "punctuation.section.comment.haml"
}
},
"end": "^(?!\\1 )",
"name": "comment.block.haml",
"patterns": [
{
"include": "text.haml"
}
]
},
{
"begin": "^\\s*(?:((%)([\\w:]+))|(?=\\.|#))",
"captures": {
"1": {
"name": "meta.tag.haml"
},
"2": {
"name": "punctuation.definition.tag.haml"
},
"3": {
"name": "entity.name.tag.haml"
}
},
"end": "$|(?!\\.|#|\\{|\\[|=|-|~|/)",
"patterns": [
{
"match": "\\.[\\w-]+",
"name": "entity.name.tag.class.haml"
},
{
"match": "#[\\w-]+",
"name": "entity.name.tag.id.haml"
},
{
"begin": "\\{(?=.*\\}|.*\\|\\s*$)",
"end": "\\}|$|^(?!.*\\|\\s*$)",
"name": "meta.section.attributes.haml",
"patterns": [
{
"include": "source.coffee"
},
{
"include": "#continuation"
}
]
},
{
"begin": "\\[(?=.*\\]|.*\\|\\s*$)",
"end": "\\]|$|^(?!.*\\|\\s*$)",
"name": "meta.section.object.haml",
"patterns": [
{
"include": "source.coffee"
},
{
"include": "#continuation"
}
]
},
{
"include": "#coffeeline"
},
{
"match": "/",
"name": "punctuation.terminator.tag.haml"
}
]
},
{
"captures": {
"1": {
"name": "meta.escape.haml"
}
},
"match": "^\\s*(\\\\.)"
},
{
"begin": "^\\s*(?==|-|~)",
"end": "$",
"patterns": [
{
"include": "#coffeeline"
}
]
}
],
"repository": {
"continuation": {
"captures": {
"1": {
"name": "punctuation.separator.continuation.haml"
}
},
"match": "(\\|)\\s*\\n"
},
"coffeeline": {
"begin": "=|-|~",
"contentName": "source.coffee.embedded.haml",
"end": "((do|\\{)( \\|[^|]+\\|)?)$|$|^(?!.*\\|\\s*$)",
"endCaptures": {
"1": {
"name": "source.coffee.embedded.html"
},
"2": {
"name": "keyword.control.coffee.start-block"
}
},
"name": "meta.line.coffee.haml",
"patterns": [
{
"comment": "Hack to let coffee comments work in this context properly",
"match": "#.*$",
"name": "comment.line.number-sign.coffee"
},
{
"include": "source.coffee"
},
{
"include": "#continuation"
}
]
}
},
"scopeName": "text.haml",
"uuid": "9e562144-0272-4f39-a928-5ed1e64c865b"
}

0 comments on commit 2491c9f

Please sign in to comment.