mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 15:12:47 +09:00
Improve new syntax files and fix a region glitch
This commit is contained in:
@@ -1,23 +1,34 @@
|
||||
filetype: java
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.java$"
|
||||
|
||||
rules:
|
||||
- type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b"
|
||||
- statement: "\\b(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b"
|
||||
- type.keyword: "\\b(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\\b"
|
||||
- constant.string: "\"[^\"]*\""
|
||||
- constant.bool: "\\b(true|false|null)\\b"
|
||||
- type: "\\b(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\\b"
|
||||
- constant: "\\b(true|false|null)\\b"
|
||||
- constant.number: "\\b[0-9]+\\b"
|
||||
- comment: "//.*"
|
||||
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
- constant.string:
|
||||
start: "'"
|
||||
end: "'"
|
||||
rules:
|
||||
- preproc: "..+"
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules: []
|
||||
|
||||
- comment:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules: []
|
||||
|
||||
- comment:
|
||||
start: "/\\*\\*"
|
||||
end: "\\*/"
|
||||
rules: []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user