summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-22 14:34:29 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-22 14:34:29 -0800
commite3e6064d30d8b1ca9481b75b3e815a1c26ad86be (patch)
tree25794f7d53d326138e480c282e2085088148652a /lib
parentfe0445746d3de6c6d11da2ecb282893789db73b1 (diff)
downloadjava-language-server-e3e6064d30d8b1ca9481b75b3e815a1c26ad86be.zip
Safer
Diffstat (limited to 'lib')
-rw-r--r--lib/java.tmLanguage.json11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json
index ef85ad9..cd3f1f9 100644
--- a/lib/java.tmLanguage.json
+++ b/lib/java.tmLanguage.json
@@ -341,8 +341,7 @@
"patterns": [
{
"begin": "^ *([A-Z]\\w*|byte|short|int|long|char|float|double|boolean) +(?=\\w)",
- "TODO": "consuming ; is dangerous",
- "end": ";|$",
+ "end": "(?=;)|$",
"name": "meta.variable.simple.java",
"beginCaptures": {
"1": {
@@ -357,7 +356,7 @@
},
{
"begin": "^ *([A-Z]\\w*|byte|short|int|long|char|float|double|boolean)(?=\\[\\])",
- "end": ";|$",
+ "end": "(?=;)|$",
"name": "meta.variable.array.java",
"beginCaptures": {
"1": {
@@ -372,7 +371,7 @@
},
{
"begin": "^ *([A-Z]\\w*)(?=<[^>])",
- "end": ";|$",
+ "end": "(?=;)|$",
"name": "meta.variable.parameterized.java",
"beginCaptures": {
"1": {
@@ -387,7 +386,7 @@
},
{
"begin": "^ *(var)\\b",
- "end": ";|$",
+ "end": "(?=;)|$",
"name": "meta.variable.var.java",
"beginCaptures": {
"1": {
@@ -402,7 +401,7 @@
},
{
"begin": "^ *(final)\\b",
- "end": ";|$",
+ "end": "(?=;)|$",
"name": "meta.variable.final.java",
"beginCaptures": {
"1": {