Permalink
Browse files

FIX: regexp highlighting when there are two divides on one line works…

… now; updated reserved-words
  • Loading branch information...
shanebdavis committed Dec 8, 2018
1 parent 325290c commit 3a02e26feeb296a63bc0ad23abb94073dad9f2df
Showing with 2 additions and 2 deletions.
  1. +2 −2 editors/CaffeineScript.sublime-syntax
@@ -15,7 +15,7 @@ contexts:
# scope: variable.function

# regexp
- match: '/([^\\/]|\\.)+/[igmuy]*'
- match: '/[^/\s]([^\\/]|\\.)*/[igmuy]*'
scope: string.regexp.caffeine

# block regexp
@@ -62,7 +62,7 @@ contexts:
# strings in YAML. When using single quoted strings, only single quotes
# need to be escaped: this is done by using two single quotes next to each
# other.
- match: '\b(super|reduce|inject|extract|instanceof|return|break|into|returning|try|catch|promise|resolve|then|and|or|is|isnt|not|if|else|switch|unless|until|throw|new|while|class|extends|array|object|find|each|to|til|by|in|from|with|do|case|when|import)\b'
- match: '\b(super|reduce|inject|as|with-key|extract|instanceof|return|break|into|returning|try|catch|promise|resolve|then|and|or|is|isnt|not|if|else|switch|unless|until|throw|new|while|class|extends|array|object|find|each|to|til|by|in|from|with|do|case|when|import)\b'
scope: keyword.caffeine

- match: '\b(false|true)\b'

0 comments on commit 3a02e26

Please sign in to comment.