Skip to content

Commit ff58f50

Browse files
committed
Pull in updated coffeescript grammar
Fixes microsoft#67138
1 parent 1bbb5ad commit ff58f50

2 files changed

Lines changed: 101 additions & 3 deletions

File tree

extensions/coffeescript/cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"git": {
77
"name": "atom/language-coffee-script",
88
"repositoryUrl": "https://github.com/atom/language-coffee-script",
9-
"commitHash": "a0da2a73ad817e2fc13c2ef8fcd2624017c39610"
9+
"commitHash": "0f6db9143663e18b1ad00667820f46747dba495e"
1010
}
1111
},
1212
"license": "MIT",
1313
"description": "The file syntaxes/coffeescript.tmLanguage.json was derived from the Atom package https://github.com/atom/language-coffee-script which was originally converted from the TextMate bundle https://github.com/jashkenas/coffee-script-tmbundle.",
14-
"version": "0.49.2"
14+
"version": "0.49.3"
1515
}
1616
],
1717
"version": 1

extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/atom/language-coffee-script/commit/a0da2a73ad817e2fc13c2ef8fcd2624017c39610",
7+
"version": "https://github.com/atom/language-coffee-script/commit/0f6db9143663e18b1ad00667820f46747dba495e",
88
"name": "CoffeeScript",
99
"scopeName": "source.coffee",
1010
"patterns": [
11+
{
12+
"include": "#jsx"
13+
},
1114
{
1215
"match": "(new)\\s+(?:(?:(class)\\s+(\\w+(?:\\.\\w*)*)?)|(\\w+(?:\\.\\w*)*))",
1316
"name": "meta.class.instance.constructor.coffee",
@@ -1213,6 +1216,101 @@
12131216
"include": "#embedded_comment"
12141217
}
12151218
]
1219+
},
1220+
"jsx": {
1221+
"patterns": [
1222+
{
1223+
"include": "#jsx-tag"
1224+
},
1225+
{
1226+
"include": "#jsx-end-tag"
1227+
}
1228+
]
1229+
},
1230+
"jsx-expression": {
1231+
"begin": "{",
1232+
"beginCaptures": {
1233+
"0": {
1234+
"name": "meta.brace.curly.coffee"
1235+
}
1236+
},
1237+
"end": "}",
1238+
"endCaptures": {
1239+
"0": {
1240+
"name": "meta.brace.curly.coffee"
1241+
}
1242+
},
1243+
"patterns": [
1244+
{
1245+
"include": "#double_quoted_string"
1246+
},
1247+
{
1248+
"include": "$self"
1249+
}
1250+
]
1251+
},
1252+
"jsx-attribute": {
1253+
"patterns": [
1254+
{
1255+
"captures": {
1256+
"1": {
1257+
"name": "entity.other.attribute-name.coffee"
1258+
},
1259+
"2": {
1260+
"name": "keyword.operator.assignment.coffee"
1261+
}
1262+
},
1263+
"match": "(?:^|\\s+)([-\\w.]+)\\s*(=)"
1264+
},
1265+
{
1266+
"include": "#double_quoted_string"
1267+
},
1268+
{
1269+
"include": "#single_quoted_string"
1270+
},
1271+
{
1272+
"include": "#jsx-expression"
1273+
}
1274+
]
1275+
},
1276+
"jsx-tag": {
1277+
"patterns": [
1278+
{
1279+
"begin": "(<)([-\\w\\.]+)",
1280+
"beginCaptures": {
1281+
"1": {
1282+
"name": "punctuation.definition.tag.coffee"
1283+
},
1284+
"2": {
1285+
"name": "entity.name.tag.coffee"
1286+
}
1287+
},
1288+
"end": "(/?>)",
1289+
"name": "meta.tag.coffee",
1290+
"patterns": [
1291+
{
1292+
"include": "#jsx-attribute"
1293+
}
1294+
]
1295+
}
1296+
]
1297+
},
1298+
"jsx-end-tag": {
1299+
"patterns": [
1300+
{
1301+
"begin": "(</)([-\\w\\.]+)",
1302+
"beginCaptures": {
1303+
"1": {
1304+
"name": "punctuation.definition.tag.coffee"
1305+
},
1306+
"2": {
1307+
"name": "entity.name.tag.coffee"
1308+
}
1309+
},
1310+
"end": "(/?>)",
1311+
"name": "meta.tag.coffee"
1312+
}
1313+
]
12161314
}
12171315
}
12181316
}

0 commit comments

Comments
 (0)