comparison nanorc.d/css.nanorc @ 109:2ee232a821c2

Improve CSS highlighting * Remove an old HTML tag that never gets used and clashes elsewhere in CSS * Add hyphens to allowed class characters
author IBBoard <dev@ibboard.co.uk>
date Sat, 28 Apr 2018 16:05:51 +0100
parents f2d500466492
children
comparison
equal deleted inserted replaced
108:4e544541cbe1 109:2ee232a821c2
1 syntax "css" "\.css$" 1 syntax "css" "\.css$"
2 comment "/*|*/" 2 comment "/*|*/"
3 3
4 # Style rules 4 # Style rules
5 color brightblue "\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rp|rt|rtc|ruby|s|samp|script|section|select|slot|small|source|spacer|span|strike|strong|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp)\b" 5 color brightblue "\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rp|rt|rtc|ruby|s|samp|script|section|select|slot|source|spacer|span|strike|strong|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp)\b"
6 color brightblue "::?(active|any|any-link|checked|default|defined|dir\([^\)]+\)|disabled|empty|enabled|first|first-child|first-of-type|fullscreen|focus|focus-visible|host|host\([^\)]+\)|host-context\([^\)]+\)|hover|indeterminate|in-range|invalid|lang\([^\)]+\)|last-child|last-of-type|left|link|not\([^\)]+\)|nth-child\([^\)]+\)|nth-last-child\([^\)]+\)|nth-last-of-type\([^\)]+\)|nth-of-type\([^\)]+\)|only-child|only-of-type|optional|out-of-range|read-only|read-write|required|right|root|scope|target|valid|visited)" 6 color brightblue "::?(active|any|any-link|checked|default|defined|dir\([^\)]+\)|disabled|empty|enabled|first|first-child|first-of-type|fullscreen|focus|focus-visible|host|host\([^\)]+\)|host-context\([^\)]+\)|hover|indeterminate|in-range|invalid|lang\([^\)]+\)|last-child|last-of-type|left|link|not\([^\)]+\)|nth-child\([^\)]+\)|nth-last-child\([^\)]+\)|nth-last-of-type\([^\)]+\)|nth-of-type\([^\)]+\)|only-child|only-of-type|optional|out-of-range|read-only|read-write|required|right|root|scope|target|valid|visited)"
7 color brightcyan "#[a-zA-Z][a-zA-Z0-9_]+" 7 color brightcyan "#[a-zA-Z][a-zA-Z0-9_]+"
8 color cyan "\.([a-zA-Z0-9_]|\\[0-9]+)+" 8 color cyan "\.([a-zA-Z0-9_-]|\\[0-9]+)+"
9 9
10 # Strings. 10 # Strings.
11 color yellow ""((\\")?(\.|[^"])*[^\\])?"" "'((\\')?(\.|[^'])*[^\\])?'" 11 color yellow ""((\\")?(\.|[^"])*[^\\])?"" "'((\\')?(\.|[^'])*[^\\])?'"
12 12
13 # Colours and measurements 13 # Colours and measurements