Skip to content

Commit

Permalink
refactor: cleaner solution to avoid language_java catastrophic back…
Browse files Browse the repository at this point in the history
…tracking (#463)
  • Loading branch information
Guldoman authored Oct 27, 2024
1 parent 03c8b32 commit 5e2292c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@
"tags": [
"language"
],
"version": "0.1.2"
"version": "0.1.3"
},
{
"description": "Syntax for the [jiyu](https://github.com/machinamentum/jiyu) programming language",
Expand Down
2 changes: 1 addition & 1 deletion plugins/language_java.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ syntax.add {
{ pattern = "-?%.?%d+f?", type = "number" },
{ pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" },
{ regex = "(?:\\w++\\.?)+(?=\\s+\\w++\\s*\\=\\s*)", type = "function" }, -- Class name when creating an object
{ regex = "(?>\\w+\\.?)+(?=\\s+\\w++\\s*\\=\\s*)", type = "function" }, -- Class name when creating an object
{ regex = "[A-Z][A-Z_]+", type = "keyword2" }, -- Constants
{ pattern = "[%a_][%w_]*", type = "symbol" },
},
Expand Down

0 comments on commit 5e2292c

Please sign in to comment.