diff --git a/Other/SyntaxDefinitions.plist b/Other/SyntaxDefinitions.plist old mode 100644 new mode 100755 index 98655fd..7727bc5 --- a/Other/SyntaxDefinitions.plist +++ b/Other/SyntaxDefinitions.plist @@ -1,5 +1,5 @@ - + @@ -43,7 +43,7 @@ run mod dat - name + name Apache file apache @@ -154,6 +154,14 @@ extensions cobol + + name + CoffeeScript + file + coffeescript + extensions + coffee + name ColdFusion @@ -203,13 +211,13 @@ e - name - Erlang - file - erl - extensions - erl hrl - + name + Erlang + file + erl + extensions + erl hrl + name eZ Publish @@ -241,7 +249,7 @@ gedcom extensions ged - + name GNU Assembler @@ -530,7 +538,7 @@ extensions rb - + name Scala file @@ -643,4 +651,4 @@ xml dtd xsd xsl - \ No newline at end of file + diff --git a/Syntax Definitions/coffeescript.plist b/Syntax Definitions/coffeescript.plist new file mode 100644 index 0000000..282dd59 --- /dev/null +++ b/Syntax Definitions/coffeescript.plist @@ -0,0 +1,84 @@ + + + + + functionDefinition + ^\s*function\s+.*\n?\s*\{ + beginVariable + + endInstruction + + firstString + " + firstSingleLineComment + # + keywordsCaseSensitive + + secondSingleLineComment + + secondString + ' + endCommand + + beginCommand + + keywords + + if + else + for + in + while + do + continue + break + with + try + catch + switch + case + new + var + return + delete + true + false + void + throw + typeof + const + default + escape + Number + window + this + call + caller + class + => + @ + -> + extends + + endSecondMultiLineComment + + endVariable + + removeFromFunction + function + beginSecondMultiLineComment + + beginFirstMultiLineComment + ### + beginInstruction + + endFirstMultiLineComment + ### + recolourKeywordIfAlreadyColoured + + autocompleteWords + + class + class + +