-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Java: Added support for constants #3507
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
Merged
RunDevelopment
merged 26 commits into
PrismJS:master
from
wangliang181230:java-variable
Jul 29, 2022
Merged
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
35798cb
Java: added support for variables, witch read from the `window.PrismC…
wangliang181230 7fd1d02
fix test
wangliang181230 556395b
update prism-java.min.js
wangliang181230 6572034
update prism-java.min.js
wangliang181230 71137cc
Java: Added support for constants and variables
wangliang181230 43a4b1f
remove variable
wangliang181230 a98fb6e
Merge remote-tracking branch 'upstream/master' into java-variable
wangliang181230 4637998
update prism-scala.min.js
wangliang181230 b4a69f8
revert issue3345.test
wangliang181230 d4e704c
add variable
wangliang181230 e773526
fix
wangliang181230 30334a2
fix
wangliang181230 d37707f
update prism-java.min.js
wangliang181230 4f7bfcb
update prism-java.min.js
wangliang181230 6e2ef87
update prism-java.min.js
wangliang181230 f4511df
update variable pattern
wangliang181230 de8ad32
update variable pattern
wangliang181230 8df98e8
update prism-java.min.js
wangliang181230 b41a2bf
Added support for `generic-parameter`
wangliang181230 4a719fe
remove variable
wangliang181230 c90c6c2
update constant_feature.test
wangliang181230 e41d506
add generic-parameter_feature.test
wangliang181230 c183011
update test
wangliang181230 d7aa1ea
update test
wangliang181230 98d6197
update generic-parameter_feature.test
wangliang181230 5b44cda
remove generic-parameter
wangliang181230 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| @Test(value = Xxxx.TYPE) | ||
| public class Test<A, BB> { | ||
| private static final Logger LOGGER = LoggerFactory.getLogger(Test.class); | ||
|
|
||
| private String str = "1"; | ||
| private String arg = "2"; | ||
| private String var1 = "3"; | ||
|
|
||
| public static void main(String[] args) { | ||
| LOGGER.info("test LOGGER: {}, {}, {}", | ||
| str, arg, var1); | ||
| } | ||
| } | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| ["annotation", "@Test"], | ||
| ["punctuation", "("], | ||
| ["variable", "value"], | ||
| ["operator", "="], | ||
| ["class-name", ["Xxxx"]], | ||
| ["punctuation", "."], | ||
| ["constant", "TYPE"], | ||
| ["punctuation", ")"], | ||
|
|
||
| ["keyword", "public"], | ||
| ["keyword", "class"], | ||
| ["class-name", ["Test"]], | ||
| ["generics", [ | ||
| ["punctuation", "<"], | ||
| ["class-name", ["A"]], | ||
| ["punctuation", ","], | ||
| " BB", | ||
| ["punctuation", ">"] | ||
| ]], | ||
| ["punctuation", "{"], | ||
|
|
||
| ["keyword", "private"], | ||
| ["keyword", "static"], | ||
| ["keyword", "final"], | ||
| ["class-name", ["Logger"]], | ||
| ["constant", "LOGGER"], | ||
| ["operator", "="], | ||
| ["class-name", ["LoggerFactory"]], | ||
| ["punctuation", "."], | ||
| ["function", "getLogger"], | ||
| ["punctuation", "("], | ||
| ["class-name", ["Test"]], | ||
| ["punctuation", "."], | ||
| ["keyword", "class"], | ||
| ["punctuation", ")"], | ||
| ["punctuation", ";"], | ||
|
|
||
| ["keyword", "private"], | ||
| ["class-name", ["String"]], | ||
| " str ", | ||
| ["operator", "="], | ||
| ["string", "\"1\""], | ||
| ["punctuation", ";"], | ||
|
|
||
| ["keyword", "private"], | ||
| ["class-name", ["String"]], | ||
| " arg ", | ||
| ["operator", "="], | ||
| ["string", "\"2\""], | ||
| ["punctuation", ";"], | ||
|
|
||
| ["keyword", "private"], | ||
| ["class-name", ["String"]], | ||
| " var1 ", | ||
| ["operator", "="], | ||
| ["string", "\"3\""], | ||
| ["punctuation", ";"], | ||
|
|
||
| ["keyword", "public"], | ||
| ["keyword", "static"], | ||
| ["keyword", "void"], | ||
| ["function", "main"], | ||
| ["punctuation", "("], | ||
| ["class-name", ["String"]], | ||
| ["punctuation", "["], | ||
| ["punctuation", "]"], | ||
| ["variable", "args"], | ||
| ["punctuation", ")"], | ||
| ["punctuation", "{"], | ||
|
|
||
| ["constant", "LOGGER"], | ||
| ["punctuation", "."], | ||
| ["function", "info"], | ||
| ["punctuation", "("], | ||
| ["string", "\"test LOGGER: {}, {}, {}\""], | ||
| ["punctuation", ","], | ||
|
|
||
| "\r\n str", | ||
| ["punctuation", ","], | ||
| " arg", | ||
| ["punctuation", ","], | ||
| " var1", | ||
| ["punctuation", ")"], | ||
| ["punctuation", ";"], | ||
|
|
||
| ["punctuation", "}"], | ||
|
|
||
| ["punctuation", "}"] | ||
| ] | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| Checks for all keywords. |
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.
Uh oh!
There was an error while loading. Please reload this page.