-
Notifications
You must be signed in to change notification settings - Fork 104
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
Fix and add patterns in language_java
, language_kotlin
and language_groovy
.
#475
base: master
Are you sure you want to change the base?
Fix and add patterns in language_java
, language_kotlin
and language_groovy
.
#475
Conversation
|
Yeah, but the regex in the PR is different. |
The one in the PR is the the old one. |
language_java
constants pattern.language_java
, language_kotlin
and language_groovy
.
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.
Could we start using [[...]]
for regexes? The escaping is way too much.
{ pattern = "'\\x%x?%x?%x?%x'", type = "string" }, -- character hexadecimal escape sequence | ||
{ pattern = "'\\u%x%x%x%x'", type = "string" }, -- character unicode escape sequence | ||
{ pattern = "'\\?.'", type = "string" }, -- character 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.
Should those go above the preceding line?
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.
Honestly I don't even know what that is.
I didn't write it.
I probably just commented it a few months ago or something like that.
Sure, I'll replace the |
Yeah, we might as well. |
…for Java and constants pattern for Java and Kotlin.
…x patterns still using double apices.
…eference inside a method's ()
Ok, now it should be much better. |
You can test this PR with:
git clone https://github.com/PerilousBooklet/lite-xl-plugins.git
git fetch && git checkout PR_java_constants
lpm run --ephemeral ./ language_java