micro/runtime/syntax/xml.yaml

34 lines
928 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

filetype: xml
detect:
filename: "\\.(xml|sgml?|rng|svg|plist)$"
header: "<\\?xml.*\\?>"
rules:
- preproc:
start: "<!DOCTYPE"
end: "[/]?>"
rules: []
- comment: "<!--.+?-->"
# next line for highlighting of character entities doesnt work as of now
- special: "&(#[[:digit:]]{1,4}|#x[[:xdigit:]]{1,4}|[^[[:space:]]]+);"
- symbol.tag:
start: "<\\??"
end: "\\??>"
rules:
- identifier:
start: " "
end: "="
rules: []
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."