Currently, any occurrences of PascalCase identifiers (even as parts of other words) are recognized as classes.
This assumes snake_case convention for all methods and variables and makes it impossible to use camelCase. While this is the recommended GDScript style, the syntax highlighter should allow for different styles as long as it can do so unambiguously. This is already done for existing rules, but overridden by one rule with an overly general regex pattern.
This commit modifies the catch-all rule for the 'parscal_class' group to only capture whole words.
For clarity, it renames 'parscal_class' to 'pascal_case_class'.
Other groups to recognize classes remain unchanged: type_declear, function-return-type, class_def, class_new, class_is, class_enum, class_name, extends
2. Shorthand if else support fix#17
3. Fix compains with used variables in array and dictionary fix#18
4. Fix error syntax check with keywords in strings fix#12
5. Add syntax check for end of expression
* Fixed the typo in the folder name configrations
Now the name is configurations. All the code
referencing the folder has also been updated.
* Updated deprecated variables
* Demonstration of current diagnostics issues
All the lines that get a complaint from diagnostics are marked
with #in 0.2.2 and a short explanation whether the complaint is valid
or not.
* Enabled syntax highlighting for comments
Now comments have a different colour compared to variables. Found it
unclear which file controls syntax so edited both
GDScript.full.tmLanguage.json and GDScript.tmLanguage.json. In addition
renamed test_files directory to be clearer and started working on
diagnostic.ts to fix false positives in syntax highglighting.
* Fixed checking comments for syntax
Now comments are not checked for syntax. This was achieved by excluding
comments from being parsed. In addition made it so that syntax check no
longer complains about empty lines having wrong indentation.
* Wrong committer details on previous commits
This commit should have the correct details.
* Added a comment explaining how nextline is parsed
* Reverted changes in symbolparser.ts
Also made minor additions to test_files.