-
Notifications
You must be signed in to change notification settings - Fork 122
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
refactor: build template.json grammar from typescript source files #581
refactor: build template.json grammar from typescript source files #581
Conversation
Thanks for the PR! I will take a look tonight; apologies for the tardiness. |
No worries, and no rush! |
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.
Additionally, could you add a rule to the build script that builds the template grammars from source?
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.
If you write to syntaxes/out
, I believe you will need to change the grammar contribution file in package.json as well.
The grammars are actually copied from syntaxes/out to dist/syntaxes as part of the build script, per ad747b9 |
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.
This is big, thanks @dannymcgee!
if (typeof value === 'string') { | ||
processedGrammar[key] = value; | ||
} else if (value instanceof RegExp) { | ||
// Escape backslashes/quote marks and trim the demarcating `/` characters from a regex literal |
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.
oh, i see. nice!
This commit refactors remaining existing grammars to use TS definitions as started in angular#581.
* refactor: move syntax grammars to TS definitions This commit refactors remaining existing grammars to use TS definitions as started in #581. * fixup! refactor: move syntax grammars to TS definitions
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As discussed in #571:
yarn build:syntaxes
)