-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for Groovy and Lua code within PROC GROOVY and PROC LUA #2091
Add support for Groovy and Lua code within PROC GROOVY and PROC LUA #2091
Conversation
* Reorder comment array to fix edge case added to comment_feature.test * Adjust datalines to allow for possible preceding spaces before closing semicolon * Move comment in sas object for correct syntax matching precedence * Add several more keywords
Thank you for this PR.
|
This adds `undefined` to the list of keywords in TypeScript.
This reverts commit f3c6ba5.
This adds support for FTL (Freemarker language).
All changed patterns are equivalent with the exception of `c-like.class-name.pattern` where the `\b` before `catch` is new.
This adds support for ANTLR4. Languages embedded via actions are not highlighted.
This adds support for etlua (Embedded Lua templating).
This adds support for the SQF language. https://community.bistudio.com/wiki/SQF_syntax
This inlines a few unnecessary `rest` properties.
This adds a test that checks for unused capturing groups in patterns and another test which ensures that lookbehind groups are always the first thing being matched in a pattern.
I made the changes specified above and dealt with the unnecessary capturing groups. How would I make Lua and Groovy optional? |
To make them optional, you change this in - "require": ["groovy", "lua", "sql"],
+ "peerDependencies": ["groovy", "lua", "sql"], I think SQL should be optional as well or is it used very often so that including it by default is justified? |
Also, with Lua and Groovy (and maybe also SQL?) being optional, you have to change your test files. To tell Prism's testing suite to load Lua/Groovy/SQL, you create a new folder in |
I've made all three languages optional and updated the tests to reflect it. |
add line spaces Co-Authored-By: Michael Schmidt <mitchi5000.ms@googlemail.com>
Like PROC SQL, PROC GROOVY and PROC LUA both contain syntax that should be treated as the language specified by the PROC, not SAS. This pull request implements that highlighting.