From 4f372d0b2529139350edd573007d55e405a71122 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 20 Jun 2017 15:10:49 -0700 Subject: [PATCH] Update coffeescript grammar --- .../syntaxes/coffeescript.tmLanguage.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json b/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json index dae1d795f45..0ce25622610 100644 --- a/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json +++ b/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json @@ -4,6 +4,7 @@ "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], + "version": "https://github.com/atom/language-coffee-script/commit/087e41aeef03b52615ef5c9e159a4b98e813f8a6", "scopeName": "source.coffee", "name": "CoffeeScript", "fileTypes": [ @@ -115,10 +116,10 @@ } }, "name": "string.quoted.script.coffee", + "contentName": "source.embedded.js", "patterns": [ { - "match": "(xh{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)", - "name": "constant.character.escape.coffee" + "include": "source.js" } ] }, @@ -448,7 +449,7 @@ "name": "punctuation.definition.escape.backslash.coffee" } }, - "match": "(\\\\)(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)", + "match": "(\\\\)(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)", "name": "constant.character.escape.backslash.coffee" }, { @@ -529,7 +530,7 @@ "name": "punctuation.definition.escape.backslash.coffee" } }, - "match": "(\\\\)(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)", + "match": "(\\\\)(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)", "name": "constant.character.escape.backslash.coffee" } ] @@ -556,7 +557,7 @@ "name": "constant.character.character-class.regexp" }, { - "match": "\\\\([0-7]{3}|x\\h\\h|u\\h\\h\\h\\h)", + "match": "\\\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4})", "name": "constant.character.numeric.regexp" }, { @@ -672,7 +673,7 @@ "name": "constant.character.escape.backslash.regexp" } }, - "match": "(?:.|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))", + "match": "(?:.|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))", "name": "constant.other.character-class.range.regexp" }, {