# Syntax support file for the Lumina Text Editor # =================================== # XML language support rules # Written by Ken Moore # Released under the 2-clause BSD license # =================================== { "meta": { "name": "XML", "file_suffix": ["xml", "xslt", "jsx", "jrs"] }, "format": { "line_wrap": false, "highlight_whitespace_eol" : true, "columns_per_line" : 70, "font_type" : "monospace", "tab_width": 8 }, "rules": [{ "name": "8 spaces rather than a tab", "regex": "([ ]{8})+", "background": "colors/bracket-missing" }, { "name": "tabs after spaces", "regex": "( )+\\t", "background": "colors/bracket-missing" }, { "name" : "odd number of spaces within indentation", "regex": "(^|\\t)([ ]{2})*[ ](?=\\<)", "background": "colors/bracket-missing" }, { "name" : "ID of a tag", "regex": "<[^> ]+[>]?", "font_weight" : "bold", "foreground" : "colors/function" }, { "name" : "tag modifiers", "regex" : "\\s[^\\= ]+(?=\\=)", "foreground" : "colors/class" }, { "name" : "strings inside a tag", "regex": "\\\"[^\\\"]*\\\"", "foreground" : "colors/text" }, { "name" : "comment", "regex_start" : "", "foreground" : "colors/comment" }, { "name" : "comment", "regex_start" : "", "foreground" : "colors/comment" }, { "name" : "escapes", "regex" : "&[^;]*;", "foreground" : "colors/preprocessor" }, { "name" : "XML preprocessor", "regex_start" : "\\<\\?xml ", "regex_end" : "\\?>", "foreground" : "colors/preprocessor" } ] }