aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--freebsd/pkg-plist1
-rw-r--r--lib/Makefile.am3
-rw-r--r--lib/lexers/css.tes74
3 files changed, 77 insertions, 1 deletions
diff --git a/freebsd/pkg-plist b/freebsd/pkg-plist
index f1f5376..0f06e0b 100644
--- a/freebsd/pkg-plist
+++ b/freebsd/pkg-plist
@@ -30,6 +30,7 @@ share/man/man7/%%PROGRAM_PREFIX%%sciteco.7.gz
%%LEXILLA%%%%DATADIR%%/lib/lexers/cobol.tes
%%LEXILLA%%%%DATADIR%%/lib/lexers/cpp.tes
%%LEXILLA%%%%DATADIR%%/lib/lexers/cs.tes
+%%LEXILLA%%%%DATADIR%%/lib/lexers/css.tes
%%LEXILLA%%%%DATADIR%%/lib/lexers/d.tes
%%LEXILLA%%%%DATADIR%%/lib/lexers/devicetree.tes
%%LEXILLA%%%%DATADIR%%/lib/lexers/diff.tes
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]
+}