Merge pull request #868 from nicolasbd/patch-1

Support .es files and fix js parenthesis highlighting
This commit is contained in:
Zachary Yedidia 2017-10-06 10:58:28 -04:00 committed by GitHub
commit da33b59858

View file

@ -1,13 +1,13 @@
filetype: javascript filetype: javascript
detect: detect:
filename: "\\.js$" filename: "(\\.js$|\\.es[5678]?$)"
rules: rules:
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b" - constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" - constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" - constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
- identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" - identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*"
- statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b" - statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b"
- statement: "\\b(for|function|class|extends|get|if|in|instanceof|new|return|set|switch)\\b" - statement: "\\b(for|function|class|extends|get|if|in|instanceof|new|return|set|switch)\\b"
- statement: "\\b(switch|this|throw|try|typeof|var|const|let|void|while|with)\\b" - statement: "\\b(switch|this|throw|try|typeof|var|const|let|void|while|with)\\b"