-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
edit DNS grammar #3768
base: main
Are you sure you want to change the base?
edit DNS grammar #3768
Conversation
Please show us an example of this syntax in an actual DNS file. Any how did we decide IN and CH are types? |
src/languages/dns.js
Outdated
{ | ||
className: 'meta', | ||
begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/ | ||
}, | ||
{ | ||
className: 'type', |
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.
scope
src/languages/dns.js
Outdated
{ | ||
className: 'meta', | ||
begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/ | ||
}, | ||
{ | ||
className: 'type', | ||
begin: /IN|CH/ |
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.
match
Yep. Nice. If you wanted to push further why not highlight everything following
Makes sense. Scoping |
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.
A few suggestions/changes above.
Please provide your test content here in textual form. |
|
The test content is good ? |
joshgoebel Have you news for this change ? Thank's |
Please pull down my latest commit and test. It tries to more accurately handle TXT records. You might have to |
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.
Add
Thank you for these modifications I have just tested and confirm that everything is good! |
joshgoebel It's good for you ? |
…n type recognition
What is the |
Build Size ReportChanges to minified artifacts in 4 files changedTotal change +267 B View Changes
|
Build Size ReportChanges to minified artifacts in 3 files changedTotal change +196 B View Changes
|
Also wonder if we should highlight |
add support for character strings and modification of DNS registration type recognition
Changes
add
{
// Character strings
scope: 'string',
begin: '"', end: '"'
},
{
className: 'type',
begin: /IN|CH/
}
edit KEYWORDS
Checklist
CHANGES.md