mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Add converted syntax files
This commit is contained in:
@@ -4,28 +4,23 @@ detect:
|
||||
filename: "\\.tex$|bib|\\.bib$|cls|\\.cls$"
|
||||
|
||||
rules:
|
||||
# colorize the identifiers of {<identifier>} and [<identifier>]
|
||||
- identifier:
|
||||
start: "\\{"
|
||||
end: "\\}"
|
||||
rules: []
|
||||
|
||||
- identifier:
|
||||
start: "\\["
|
||||
end: "\\]"
|
||||
rules: []
|
||||
# numbers
|
||||
|
||||
- constant.number: "\\b[0-9]+(\\.[0-9]+)?([[:space:]](pt|mm|cm|in|ex|em|bp|pc|dd|cc|nd|nc|sp))?\\b"
|
||||
# let brackets have the default color again
|
||||
- default: "[{}\\[\\]]"
|
||||
- symbol.brackets: "[{}\\[\\]]"
|
||||
- special: "[&\\\\]"
|
||||
# macros
|
||||
- statement: "\\\\@?[a-zA-Z_]+"
|
||||
# comments
|
||||
- comment:
|
||||
start: "%"
|
||||
end: "$"
|
||||
rules: []
|
||||
- identifier.macro: "\\\\@?[a-zA-Z_]+"
|
||||
- comment: "%.*"
|
||||
- comment:
|
||||
start: "\\\\begin\\{comment\\}"
|
||||
end: "\\\\end\\{comment\\}"
|
||||
rules: []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user