term.lua (2309B)
1 local lexers = vis.lexers 2 3 local grey0 = '#555551' 4 5 local comment = 'dim' 6 local constant = 'fore:blue' 7 local keyword = 'bold' 8 local operator = 'fore:yellow' 9 10 lexers.STYLE_DEFAULT = '' 11 lexers.STYLE_NOTHING = '' 12 lexers.STYLE_ATTRIBUTE = keyword 13 lexers.STYLE_CLASS = keyword 14 lexers.STYLE_COMMENT = comment 15 lexers.STYLE_CONSTANT = constant 16 lexers.STYLE_DEFINITION = '' 17 lexers.STYLE_ERROR = 'fore:red' 18 lexers.STYLE_FUNCTION = '' 19 lexers.STYLE_FUNCTION_BUILTIN = lexers.STYLE_FUNCTION 20 lexers.STYLE_FUNCTION_METHOD = lexers.STYLE_FUNCTION 21 lexers.STYLE_HEADING = keyword 22 lexers.STYLE_KEYWORD = keyword 23 lexers.STYLE_LABEL = keyword 24 lexers.STYLE_NUMBER = constant 25 lexers.STYLE_OPERATOR = operator 26 lexers.STYLE_REGEX = '' 27 lexers.STYLE_STRING = constant 28 lexers.STYLE_PREPROCESSOR = keyword 29 lexers.STYLE_TAG = '' 30 lexers.STYLE_TYPE = '' 31 lexers.STYLE_VARIABLE = '' 32 lexers.STYLE_WHITESPACE = '' 33 lexers.STYLE_EMBEDDED = '' 34 lexers.STYLE_IDENTIFIER = '' 35 36 lexers.STYLE_LINENUMBER = '' 37 lexers.STYLE_LINENUMBER_CURSOR = 'bold' 38 lexers.STYLE_CURSOR = 'back:white,fore:black' 39 lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR 40 lexers.STYLE_CURSOR_LINE = 'underlined' 41 lexers.STYLE_COLOR_COLUMN = 'back:' .. grey0 42 lexers.STYLE_SELECTION = 'bold,back:' .. grey0 43 lexers.STYLE_STATUS = 'fore:black,back:white' 44 lexers.STYLE_STATUS_FOCUSED = lexers.STYLE_STATUS .. ',bold' 45 lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT 46 lexers.STYLE_INFO = 'bold' 47 lexers.STYLE_EOF = '' 48 49 -- diff 50 lexers.STYLE_ADDITION = 'fore:green' 51 lexers.STYLE_CHANGE = 'fore:yellow' 52 lexers.STYLE_DELETION = 'fore:red' 53 54 -- latex, tex, texinfo 55 lexers.STYLE_COMMAND = lexers.STYLE_KEYWORD 56 lexers.STYLE_COMMAND_SECTION = lexers.STYLE_CLASS 57 lexers.STYLE_ENVIRONMENT = lexers.STYLE_TYPE 58 lexers.STYLE_ENVIRONMENT_MATH = lexers.STYLE_NUMBER 59 60 -- markdown and friends 61 for i = 1,6 do lexers['STYLE_HEADING_H'..i] = 'fore:cyan,bold' end 62 lexers.STYLE_BOLD = 'bold' 63 lexers.STYLE_ITALIC = 'italics'