mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-21 16:27:12 +09:00
Colorscheme group inheritance
With this commit, the syntax files can define groups that are subsets of other groups, for example constant.string. This is so that colorschemes can be more accurate, possibly highlighting strings differently than numbers for example. See #176. This doesn't fully close that issue yet because the string group still needs to be added to all strings in the syntax files.
This commit is contained in:
@@ -9,11 +9,11 @@ color statement "\b(for|range|if|else|case|default|switch|return)\b"
|
||||
color statement "\b(go|goto|break|continue)\b"
|
||||
color constant "\b(true|false)\b"
|
||||
color statement "[-+/*=<>!~%&|^]|:="
|
||||
color constant "\b([0-9]+|0x[0-9a-fA-F]*)\b|'.'"
|
||||
color constant ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color constant "\\[abfnrtv'\"\\]"
|
||||
color constant "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
||||
color constant "`[^`]*`"
|
||||
color constant.number "\b([0-9]+|0x[0-9a-fA-F]*)\b|'.'"
|
||||
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color constant.specialChar "\\[abfnrtv'\"\\]"
|
||||
color constant.specialChar "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
||||
color constant.string "`[^`]*`"
|
||||
color comment "(^|[[:space:]])//.*"
|
||||
color comment start="/\*" end="\*/"
|
||||
color todo "TODO:?"
|
||||
|
||||
Reference in New Issue
Block a user