-
Notifications
You must be signed in to change notification settings - Fork 414
Add support for D #856
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
Open
baruch
wants to merge
176
commits into
Wilfred:master
Choose a base branch
from
baruch:dlang-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add support for D #856
Conversation
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
This covers the entire corpus of the our source code. A rather incomplete test suite (contributions are welcome!) is provided as well as some initial working queries. D is a very complex language, without a good consistent specification -- much of the work here was arrived at by trial and error, working from the specification, and also validating with actual source code. There are still no doubt some omissions.
This enables special formatting of TODO, etc.
This should help (but does not completely solve) with some grammar issues with comments embedded in strings. It also reduces the size of the grammar a bit.
Note that there is still a problem with strings that have embedded comments at the start.
The htmlentity is tokenized now as an escape sequence, and is n longer differentiated from other escape sequences. Update your queries accordingly.
While here add support for escape characters and htmlentities to the base highlights.
This essentially returns the !in and !is handling to the scanner, which is necessary to avoid confusing the parser since these are not "words".
Brings back htmlentity, adds tags queries, a few bugs in the parser for comments. This limits nesting comments to 5 levels deep.
Implement support in difftastic for the D programming language using the treesitter grammar provided in https://github.com/gdamore/tree-sitter-d
Author
|
Resolved conflicts |
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.
No description provided.