diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-18 21:51:27 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-18 21:51:27 +0300 |
commit | 3cf370be02322cb0688af9f5465c251b379283a1 (patch) | |
tree | ffd15f27e8dde22a5ff01762216694fb8598eaaf /lib | |
parent | 91fa1656600a52eddf650ea550e7cbd69d72903e (diff) | |
download | sciteco-3cf370be02322cb0688af9f5465c251b379283a1.tar.gz |
added CSS lexer configuration
Especially useful since Gtk users are supposed to edit ~/.teco_css.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 3 | ||||
-rw-r--r-- | lib/lexers/css.tes | 74 |
2 files changed, 76 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index e0da727..b8832ab 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -104,6 +104,7 @@ dist_lexer_DATA += lexers/verilog.tes \ lexers/markdown.tes \ lexers/asciidoc.tes \ lexers/troff.tes \ - lexers/sql.tes + lexers/sql.tes \ + lexers/css.tes endif diff --git a/lib/lexers/css.tes b/lib/lexers/css.tes new file mode 100644 index 0000000..08f4077 --- /dev/null +++ b/lib/lexers/css.tes @@ -0,0 +1,74 @@ +!* Cascading Style Sheets *! + +@[lexer.test.css]{ + :EN*.cssQ*"S -1 ' + :EN*.teco_cssQ* +} + +@[lexer.set.css]{ + ESSETILEXERcss + 0ESSETKEYWORDS + color background-color background-image background-repeat background-attachment + background-position background font-family font-style font-variant font-weight + font-size font word-spacing letter-spacing text-decoration vertical-align text-transform + text-align text-indent line-height margin-top margin-right margin-bottom margin-left + margin padding-top padding-right padding-bottom padding-left padding border-top-width + border-right-width border-bottom-width border-left-width border-width border-top + border-right border-bottom border-left border border-color border-style width + height float clear display white-space list-style-type list-style-image list-style-position + list-style + 1ESSETKEYWORDS + link active visited first-child focus hover lang left right first empty enabled + disabled checked not root target only-child last-child nth-child nth-last-child + first-of-type last-of-type nth-of-type nth-last-of-type only-of-type valid invalid + required optional first-letter first-line before after + 2ESSETKEYWORDS + border-top-color border-right-color border-bottom-color border-left-color border-color + border-top-style border-right-style border-bottom-style border-left-style border-style + top right bottom left position z-index direction unicode-bidi min-width max-width + min-height max-height overflow clip visibility content quotes counter-reset counter-increment + marker-offset size marks page-break-before page-break-after page-break-inside + page orphans widows font-stretch font-size-adjust unicode-range units-per-em src + panose-1 stemv stemh slope cap-height x-height ascent descent widths bbox definition-src + baseline centerline mathline topline text-shadow caption-side table-layout border-collapse + border-spacing empty-cells speak-header cursor outline outline-width outline-style + outline-color volume speak pause-before pause-after pause cue-before cue-after + cue play-during azimuth elevation speech-rate voice-family pitch pitch-range stress + richness speak-punctuation speak-numeral + 3ESSETKEYWORDS + background-size border-radius border-top-right-radius border-bottom-right-radius + border-bottom-left-radius border-top-left-radius box-shadow columns column-width + column-count column-rule column-gap column-rule-color column-rule-style column-rule-width + resize opacity word-wrap + 4ESSETKEYWORDS + first-letter first-line before after selection + 5ESSETKEYWORDS + ^-moz- ^-webkit- ^-o- ^-ms- filter + 6ESSETKEYWORDS + indeterminate default ^-moz- ^-webkit- ^-o- ^-ms- + 7ESSETKEYWORDS + ^-moz- ^-webkit- ^-o- ^-ms- + + !* selectors *! + !!:M[color.keyword],1M[color.set] + !!:M[color.keyword],2M[color.set] + :M[color.keyword],3M[color.set] + :M[color.error],4M[color.set] + !* CSS properties *! + :M[color.keyword],6M[color.set] + !!:M[color.error],7M[color.set] + :M[color.keyword],7M[color.set] + :M[color.keyword],15M[color.set] + :M[color.keyword],17M[color.set] + :M[color.keyword],19M[color.set] + :M[color.operator],5M[color.set] + !!:M[color.string],8M[color.set] + :M[color.comment],9M[color.set] + !!:M[color.number],10M[color.set] + :M[color.keyword],11M[color.set] + :M[color.preproc],12M[color.set] + :M[color.string],13M[color.set] + :M[color.string2],14M[color.set] + :M[color.variable],16M[color.set] + :M[color.preproc2],22M[color.set] +} |