Syntax highlighting for SOUL & HEART in VSCode & Atom #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
i32
,_i64
, ...) and a couple missing types (stream
,value
)constant.numeric.*
and checked withsoul errors
(and added octal).module
, functions,enum|struct
andusing
patterns.storage.class
andstorage.modifier
.processor.*
is considered a constant.L
for integers.function
.Soulpatch
Also, might be worth mentioning in
tools/editors/vs_code_extension/README.md
that you can associate a.soulpatch
file to JSON to get highlighting by adding this to the file association setting in VSCode:Note for porting to Atom
Both editors use regex pattern matching with TextMate grammar so porting is trivial. Basically just
json2cson
. Some patterns regarding bracket and parentheses detection were removed because they were interfering with other rules.