-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve syntax highlighting #18
Merged
Merged
Changes from 12 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
21055f1
Rework comment syntax
jiribenes 3802d3c
Rework strings, add splices, add characters
jiribenes f6198d8
Reformat file to conform to the current style
jiribenes e7af33d
Make a separate class for capabilities
jiribenes a078110
Parse namespace declarations
jiribenes f6a6d2a
Support capability sets precisely
jiribenes 5765516
Add folding markers
jiribenes 00a0c32
Try to keep a common style throughout the file
jiribenes cb491ef
Characters can be top-level, escapes synced with lexer
jiribenes d82dc85
Fix multi-line strings parsed as single-line
jiribenes 45e1173
Add float literals
jiribenes 2739c27
Try to parse extern defs properly
jiribenes 93c019e
Improve typed hole parsing
jiribenes 9c2b2d3
Simplify and extract literals
jiribenes 23d911f
Add supported operators
jiribenes b2cfffb
Ensure naming conventions are consistent
jiribenes daaecec
Reformat
jiribenes dc5fc7f
Reorganize keywords
jiribenes 94ce3e1
Make 'in' a conditional keyword only
jiribenes 974f89d
Definitions shouldn't be stopped by '=>'
jiribenes 1d7d365
More sofisticated end-stops for definitions
jiribenes 812bb81
Support boxed types: 'at {io, global}'
jiribenes 1df2a1b
Fix highlighting type annotations in variables
jiribenes 7dc2c36
Simplify end patterns further
jiribenes e00c154
Refactor escapes, highlight invalid escapes
jiribenes edb6a54
Literals have a priority over names
jiribenes 4ae4bdb
Clarify TextMate scopes, fix bugs, add 'module'
jiribenes 2a30140
Add first-class support for regions
jiribenes 65bc391
Add proper support for modules and imports
jiribenes 9052cf5
Use 'keyword.other' to comply with standard TextMate scopes
jiribenes f6188ec
Region references are also capabilities
jiribenes 35dc0f6
Distinguish the 'global' region as a builtin
jiribenes 00ec30b
Remove duplicate keyword
jiribenes 2d69df2
Resolve keywords, remove 'as'
jiribenes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was quite surprised, but
\uFF0F
is really a char literal with no need for single quotes in the current parser!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed effekt-lang/effekt#521 just to be sure that we don't have to support this :)