Syntax highlighting for SOUL & HEART in VSCode & Atom#28
Open
nicochatzi wants to merge 11 commits intosoul-lang:masterfrom
Open
Syntax highlighting for SOUL & HEART in VSCode & Atom#28nicochatzi wants to merge 11 commits intosoul-lang:masterfrom
nicochatzi wants to merge 11 commits intosoul-lang:masterfrom
Conversation
…ction highlighting
added 2 commits
June 8, 2020 09:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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|structandusingpatterns.storage.classandstorage.modifier.processor.*is considered a constant.Lfor integers.function.Soulpatch
Also, might be worth mentioning in
tools/editors/vs_code_extension/README.mdthat you can associate a.soulpatchfile 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.