diff --git a/Syntaxes/JavaScript.plist b/Syntaxes/JavaScript.plist index 1895106..89128cd 100644 --- a/Syntaxes/JavaScript.plist +++ b/Syntaxes/JavaScript.plist @@ -185,103 +185,8 @@ patterns - captures - - 1 - - name - invalid.illegal.delimiter.object.comma.js - - - match - (,)\s*+(?=\}) - - - captures - - 1 - - name - string.quoted.double.js - - 2 - - name - punctuation.definition.string.js - - 3 - - name - constant.other.object.key.js - - 4 - - name - punctuation.definition.string.js - - 5 - - name - punctuation.separator.objects.js - - - comment - "something" : - match - ((")([^"]*)(")\s*)(:)\s*+(?!function) - - - captures - - 1 - - name - string.quoted.single.js - - 2 - - name - punctuation.definition.string.js - - 3 - - name - constant.other.object.key.js - - 4 - - name - punctuation.definition.string.js - - 5 - - name - punctuation.separator.objects.js - - - comment - 'something' : - match - ((')([^']*)(')\s*)(:)\s*+(?!function) - - - captures - - 1 - - name - constant.other.object.key.js - - 2 - - name - punctuation.separator.objects.js - - - comment - something : - match - \b(\w+\b\s*)(:)\s*+(?!function) + include + #object-properties include @@ -647,6 +552,111 @@ + object-properties + + patterns + + + captures + + 1 + + name + invalid.illegal.delimiter.object.comma.js + + + match + (,)\s*+(?=\}) + + + captures + + 1 + + name + string.quoted.double.js + + 2 + + name + punctuation.definition.string.js + + 3 + + name + constant.other.object.key.js + + 4 + + name + punctuation.definition.string.js + + 5 + + name + punctuation.separator.objects.js + + + comment + "something" : + match + ((")([^"]*)(")\s*)(:)\s*+(?!function) + + + captures + + 1 + + name + string.quoted.single.js + + 2 + + name + punctuation.definition.string.js + + 3 + + name + constant.other.object.key.js + + 4 + + name + punctuation.definition.string.js + + 5 + + name + punctuation.separator.objects.js + + + comment + 'something' : + match + ((')([^']*)(')\s*)(:)\s*+(?!function) + + + captures + + 1 + + name + constant.other.object.key.js + + 2 + + name + punctuation.separator.objects.js + + + comment + something : + match + \b(\w+\b\s*)(:)\s*+(?!function) + + + scopeName source.js.base