mirror of
https://github.com/scopatz/nanorc
synced 2024-11-12 20:24:15 +01:00
b64de43467
The commit mariuszs/nanorc@e5cc8be863 introduced a number of rc files that cause tabs to always show as red (even with trailing spaces). Adjust the behavior according to changes in https://github.com/nanorc/nanorc/blob/master/mixins/lint.nanorc, which seems to be an updated source of the original commit. Make tabs appear green without trailing characters, red with trailing spaces, and uncolored when followed by any other character.
35 lines
1.9 KiB
Plaintext
35 lines
1.9 KiB
Plaintext
syntax "sql" "\.sql$" "sqliterc$"
|
|
|
|
icolor cyan "\<(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\>"
|
|
icolor cyan "\<(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\>"
|
|
icolor cyan "\<(CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE)\>"
|
|
icolor cyan "\<(DATABASES|DATABASE|DATA|DELAYED|DESCRIBE|DESC|DISTINCT|DELETE|DROP|DEFAULT)\>"
|
|
icolor cyan "\<(ENCLOSED|ESCAPED|EXISTS|EXPLAIN)\>"
|
|
icolor cyan "\<(FIELDS|FIELD|FLUSH|FOR|FOREIGN|FUNCTION|FROM)\>"
|
|
icolor cyan "\<(GROUP|GRANT|HAVING)\>"
|
|
icolor cyan "\<(IGNORE|INDEX|INFILE|INSERT|INNER|INTO|IDENTIFIED|IN|IS|IF)\>"
|
|
icolor cyan "\<(JOIN|KEYS|KILL|KEY)\>"
|
|
icolor cyan "\<(LEADING|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCK|LOW_PRIORITY|LEFT|LANGUAGE)\>"
|
|
icolor cyan "\<(MODIFY|NATURAL|NOT|NULL|NEXTVAL)\>"
|
|
icolor cyan "\<(OPTIMIZE|OPTION|OPTIONALLY|ORDER|OUTFILE|OR|OUTER|ON)\>"
|
|
icolor cyan "\<(PROCEDURE|PROCEDURAL|PRIMARY)\>"
|
|
icolor cyan "\<(READ|REFERENCES|REGEXP|RENAME|REPLACE|RETURN|REVOKE|RLIKE|RIGHT)\>"
|
|
icolor cyan "\<(SHOW|SONAME|STATUS|STRAIGHT_JOIN|SELECT|SETVAL|SET)\>"
|
|
icolor cyan "\<(TABLES|TERMINATED|TO|TRAILING|TRUNCATE|TABLE|TEMPORARY|TRIGGER|TRUSTED)\>"
|
|
icolor cyan "\<(UNIQUE|UNLOCK|USE|USING|UPDATE|VALUES|VARIABLES|VIEW)\>"
|
|
icolor cyan "\<(WITH|WRITE|WHERE|ZEROFILL|TYPE|XOR)\>"
|
|
color green "\<(VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|INTEGER|BIGINT|FLOAT|DOUBLE|DECIMAL|DATETIME|TIMESTAMP|TIME|YEAR|UNSIGNED|CHAR|TINYBLOB|TINYTEXT|BLOB|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|ENUM|BOOL|BINARY|VARBINARY)\>"
|
|
|
|
# SQLite meta commands
|
|
icolor cyan "\.\<(databases|dump|echo|exit|explain|header(s)?|help)\>"
|
|
icolor cyan "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>"
|
|
icolor cyan "\.\<(schema|separator|show|tables|timeout|width)\>"
|
|
color brightcyan "\<(ON|OFF)\>"
|
|
|
|
color blue "\<([0-9]+)\>"
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color yellow "`(\\.|[^\\`])*`"
|
|
color brightblack "\-\-.*$"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|