Граф коммитов

48 Коммитов

Автор SHA1 Сообщение Дата
Adrien Pyke 4246ede11b set unicode escape sequences to constant.character.escape scope 2019-10-25 15:37:42 -04:00
Matt Bierner 4f1991e11c Use 'contentName' instead of 'name' to mark embedded jsx expressions
Jsx expressions currently use `name` to mark the entire expresion (including the opening and closing braces) as `meta.embedded.expression`. This causes VS Code to treat the entire expresssion as JavaScript for basic language commands such as highlighting.

This fix instead changes jsx expressions to only mark the expression itself (and not the braces) as `meta.embedded.expression`. This lets VS Code correctly handle commenting in a few edge cases
2019-10-11 08:52:04 -07:00
Sheetal Nandi 14e9cf1a75 Do not consume end of line in a single line comment
Fixes #646
2018-08-21 10:48:24 -07:00
Sheetal Nandi 06dee86e6f Uniformly handle the leading white spaces for array literal, binding patterns, method/field declarations
Fixes #624
2018-06-07 10:32:21 -07:00
Sheetal Nandi fb1064ac57 Treat ( followed by new line as parameter context for arrow, falling back to expression
Handles #481, #498, #507, #524, #539, #550
2017-12-14 10:58:17 -08:00
Matt Bierner 8104f556fd Add new meta scope to specifically mark attributes in tags
Fix #532
2017-10-12 17:30:38 -07:00
Sheetal Nandi 5568824c6b Handle single line comments so that they consume end of the line so that we dont use wrong lookup to determine end of syntax matching
Fixes #455
2017-05-18 15:24:15 -07:00
Matt Bierner 76c512ce9a Mark TSX Class Tags Differently from Normal Elements
Fixes #415

Adds an extra marker for tsx tags that are likly a javascript/typescript class instead of a standard html element
2017-05-03 20:30:50 -07:00
Sheetal Nandi f2cdd8bc68 Add scope 'meta.function-call' for function-method calls
Fixes #413
2017-04-21 15:27:37 -07:00
Sheetal Nandi fcbd5708d9 Fix the variable initializer such that new lines are handled better.
If the expression starts on same line use end of line to end the scope
Otherwise do not use end of line as end of scope unless its complete blank line
2016-12-12 15:23:57 -08:00
Sheetal Nandi addce3c614 Simplify jsx entities usage in the jsx string 2016-11-07 15:33:52 -08:00
Sheetal Nandi c5815556db Remove unnecessary scope name 2016-11-07 15:19:06 -08:00
Sheetal Nandi a87cde2f4d Renaming the scope name of object-literal to objectliteral
This is to make sure vscode injection scope selection doesnt fail.
2016-10-21 15:05:21 -07:00
Sheetal Nandi 19899b140f Add scope meta.definition to varible, function, method and field declarations 2016-10-20 11:38:07 -07:00
Sheetal Nandi 3915af6b7b Rename entity.name.class to entity.name.type.class 2016-10-17 11:48:06 -07:00
Sheetal Nandi acc6b06af5 Simplify variable and destructuring pattern
Fixes #307
2016-10-12 10:48:50 -07:00
Sheetal Nandi 67b3e04d13 Support Spread and Rest operator
Fixes #291
2016-10-07 13:57:39 -07:00
Sheetal Nandi 67954e4ba0 Rename the scope of jsx evaluated code to meta.embedded.expression
Handles #280
2016-10-03 11:06:29 -07:00
Sheetal Nandi 01b3bf11c2 Don't scope object literal keys as entity.name.attribute-name 2016-09-29 11:38:52 -07:00
Sheetal Nandi 55c8c9e50d Scope functions, variables, methods, properties, objects, constants 2016-09-23 15:12:32 -07:00
Sheetal Nandi 74d7b4d06c Add support classes, functions, properties and constants
Fixes #71, #72
2016-09-23 10:39:47 -07:00
Sheetal Nandi 1f019cca04 Compare the baselines against both the grammars unless specified
Fixes #91
2016-09-21 13:36:46 -07:00
Sheetal Nandi fd25d9aeda Generated baselines with clean file text (without marker)
This makes it easier to copy paste the file text in the editor when verifying
2016-09-21 12:39:50 -07:00
Sheetal Nandi 0076313da7 Output Grammar name with the baseline scopes
Also cleans up existing generated folder to ensure we are always comparing latest results
2016-09-21 12:38:22 -07:00
Sheetal Nandi e6b8e961b3 Rename the function references from entity.name.function to variable.function 2016-09-16 10:48:24 -07:00
Sheetal Nandi 84a4e42928 Scope '.' accessor 2016-09-15 16:27:02 -07:00
Sheetal Nandi 8170e063be Scope ';' 2016-09-15 16:16:35 -07:00
Sheetal Nandi 87aa92a02d Scope function names from function calls and add scoping for , 2016-09-15 16:03:59 -07:00
Sheetal Nandi 1c5a0d1d8c Scope object literal keys
Addresses #23
2016-09-13 13:44:36 -07:00
Sheetal Nandi 7dbf74c46f Simplify class meta scoping and use meta.class.ts instead of meta.declaration.object.ts 2016-09-13 11:37:38 -07:00
Sheetal Nandi 191f6c258b Fix function call type parameters 2016-09-01 14:09:14 -07:00
Sheetal Nandi 5a0c10a0fd Add content name for meta.jsx.children.tsx 2016-08-31 12:23:59 -07:00
Sheetal Nandi 7dcc1eeaec Remove scopes meta.tag.open.tsx and meta.tag.close.tsx and use meta.tag.tsx instead 2016-08-31 12:20:03 -07:00
Sheetal Nandi 6222a1872f Fix how jsx tag and children are scoped
Fixes #161
2016-08-31 12:11:14 -07:00
Sheetal Nandi f01053fb79 Support generators syntax and fix the scoping of type parameter end 2016-08-31 11:21:34 -07:00
Sheetal Nandi e038ac8f44 Rename meta.function.type.parameter.ts to meta.parameters.ts 2016-08-29 11:28:15 -07:00
Sheetal Nandi c8172856eb Rename meta.decl.block to meta.block 2016-08-23 12:04:09 -07:00
Sheetal Nandi d5caa74e82 rename meta.block to meta.object-literal 2016-08-23 10:51:15 -07:00
Sheetal Nandi 731f7c09a7 Rearrange the declarations, statements, expressions 2016-08-19 12:24:19 -07:00
Sheetal Nandi b0b161da25 Fix incorrect scope name for assignment 2016-08-17 16:29:15 -07:00
Sheetal Nandi b7a6c22be9 Few simplifications for type-name and primitive types 2016-08-17 11:09:38 -07:00
Sheetal Nandi 38cee99665 Workaround to distiguish attribute values from the string literals 2016-08-16 15:39:17 -07:00
Sheetal Nandi 8c4e427918 Renaming of scope names to match other grammars
Note jsx attribute value is colored as string with this and its a TODO
2016-08-16 13:07:17 -07:00
Sheetal Nandi 1de155d405 Strings 2016-08-12 14:14:45 -07:00
Sheetal Nandi 89d8a7bf75 Changes for numeric literals 2016-08-11 15:45:11 -07:00
Sheetal Nandi aea13ef0e7 Update comment grammar 2016-08-11 11:57:16 -07:00
Sheetal Nandi c0acaa221e Add original file to baselines for easier diagnosing issues with baseline 2016-08-11 08:58:46 -07:00
Sheetal Nandi 89e4a66bd5 Make baselines so we can verify against new grammar 2016-08-11 08:57:19 -07:00