diff options
Diffstat (limited to 'lib/lexers')
-rw-r--r-- | lib/lexers/cpp.tes | 2 | ||||
-rw-r--r-- | lib/lexers/git.tes | 18 | ||||
-rw-r--r-- | lib/lexers/html.tes | 51 | ||||
-rw-r--r-- | lib/lexers/troff.tes | 85 |
4 files changed, 152 insertions, 4 deletions
diff --git a/lib/lexers/cpp.tes b/lib/lexers/cpp.tes index d1acce4..5c3ce4a 100644 --- a/lib/lexers/cpp.tes +++ b/lib/lexers/cpp.tes @@ -12,7 +12,7 @@ :EN*.hppQ*"S -1 ' :EN*.hxxQ*"S -1 ' :EN*.ippQ*"S -1 ' - :EN*.mmQ*"S -1 ' + !*:EN*.mmQ*"S -1 '*! :EN*.smaQ*"S -1 ' :EN*.inoQ* } diff --git a/lib/lexers/git.tes b/lib/lexers/git.tes new file mode 100644 index 0000000..3162f78 --- /dev/null +++ b/lib/lexers/git.tes @@ -0,0 +1,18 @@ +!* Git commit and rebase messages *! + +@[lexer.test.git]{ + :EN*/COMMIT_EDITMSGQ*"S -1 ' + :EN*/TAG_EDITMSGQ*"S -1 ' + :EN*/MERGE_MSGQ*"S -1 ' + :EN*/git-rebase-todoQ* +} + +@[lexer.set.git]{ + :M[color.comment],1M[color.set] + + .U.p + J< .-Z"= 1; ' + 0A-#"= ESSTARTSTYLING 1,(Q.lESLINELENGTH)ESSETSTYLING ' + :L; %.l> + Q.pJ +} diff --git a/lib/lexers/html.tes b/lib/lexers/html.tes index b09012d..61a8448 100644 --- a/lib/lexers/html.tes +++ b/lib/lexers/html.tes @@ -1,4 +1,4 @@ -! AUTO-GENERATED FROM SCITE PROPERTY SET ! +!* HTML and embedded scripting languages *! @[lexer.test.html]{ :EN*.htmlQ*"S -1 ' @@ -78,21 +78,66 @@ __dir__ __file__ __function__ __line__ __method__ __namespace__ __sleep __wakeup 5ESSETKEYWORDS ELEMENT DOCTYPE ATTLIST ENTITY NOTATION + !* HTML *! + :M[color.keyword],1M[color.set] :M[color.number],5M[color.set] :M[color.string],6M[color.set] - :M[color.string],7M[color.set] + :M[color.string2],7M[color.set] + :M[color.comment],9M[color.set] + :M[color.variable],10M[color.set] + :M[color.preproc],17M[color.set] + !* Embedded Javascript *! :M[color.comment],42M[color.set] :M[color.comment],43M[color.set] :M[color.comment],44M[color.set] :M[color.number],45M[color.set] :M[color.keyword],47M[color.set] :M[color.string],48M[color.set] - :M[color.string],49M[color.set] + :M[color.string2],49M[color.set] :M[color.operator],50M[color.set] + !* ASP Javascript *! + :M[color.comment],57M[color.set] + :M[color.comment],58M[color.set] + :M[color.comment],59M[color.set] + :M[color.number],60M[color.set] + :M[color.keyword],62M[color.set] + :M[color.string],63M[color.set] + :M[color.string2],64M[color.set] + :M[color.operator],65M[color.set] + !* Embedded VBScript *! :M[color.comment],72M[color.set] + :M[color.number],73M[color.set] + :M[color.keyword],74M[color.set] + :M[color.string],75M[color.set] + !* ASP VBScript *! :M[color.comment],82M[color.set] + :M[color.number],83M[color.set] + :M[color.keyword],84M[color.set] + :M[color.string],85M[color.set] + !* Embedded Python *! :M[color.comment],92M[color.set] + :M[color.number],93M[color.set] + :M[color.string],94M[color.set] + :M[color.string2],95M[color.set] + :M[color.string],97M[color.set] + :M[color.string2],98M[color.set] + :M[color.operator],101M[color.set] + !* ASP Python *! :M[color.comment],107M[color.set] + :M[color.number],108M[color.set] + :M[color.string],109M[color.set] + :M[color.string2],110M[color.set] + :M[color.string],112M[color.set] + :M[color.string2],113M[color.set] + :M[color.operator],116M[color.set] + !* PHP *! + :M[color.string],119M[color.set] + :M[color.string2],120M[color.set] + :M[color.keyword],121M[color.set] + :M[color.number],122M[color.set] + :M[color.variable],123M[color.set] :M[color.comment],124M[color.set] :M[color.comment],125M[color.set] + :M[color.variable],126M[color.set] + :M[color.operator],127M[color.set] } diff --git a/lib/lexers/troff.tes b/lib/lexers/troff.tes new file mode 100644 index 0000000..a10d3e9 --- /dev/null +++ b/lib/lexers/troff.tes @@ -0,0 +1,85 @@ +!* troff/nroff *! + +@[lexer.test.troff]{ + :EN*.groffQ*"S -1 ' + :EN*.roffQ*"S -1 ' + :EN*.meQ*"S -1 ' + :EN*.mmQ*"S -1 ' + :EN*.msQ*"S -1 ' + :EN*.momQ*"S -1 ' + :EN*.manQ*"S -1 ' + :EN*.mdocQ*"S -1 ' + :EN*.tmacQ*"S -1 ' + :EN*.[12345678]Q* +} + +!* Heirloom Troff specific requests *! +[lexer.troff.heirloom] + bleedat breakchar brnl brpnl + cropat dch dwh + errprint + fallback fdeferlig feature fkern flig fp fps fspacewidth + hidechar hylang hylen hypp + index + kernafter kernbefore kernpair + lc_ctype lds letadj lhang lnr lnrf lpfx + mediasize minss + nhychar nrf + padj papersize psbb pshape + recursionlimit rhang + sentchar spacewidth + track transchar trimat + unwatch unwatchn + watch watchlength watchn + xflag +!* Neatroff-specific requests *! +[lexer.troff.neatroff] + << >> cl co co+ co< co> eos ff ffsc fmap + hycost hydash hystop in2 kn ochar pmll ssh ti2 + +@[lexer.set.troff]{ + ESSETILEXERtroff + !* Predefined requests (derived from Groff) *! + 0ESSETKEYWORDS + ab ad af aln als am am1 ami ami1 as as1 asciify + backtrace bd blm box boxa bp br brp break + c2 cc ce cf cflags ch char chop class close color composite continue cp cs cu + da de de1 defcolor dei dei1 device devicem di do ds ds1 dt + ec ecr ecs el em eo ev evc ex + fam fc fchar fcolor fi fl fp fschar fspecial ft ftr fzoom + gcolor + hc hcode hla hlm hpf hpfa hpfcode hw hy hym hys + ie if ig . in it itc + kern + lc length linetabs linetabs lf lg ll lsm ls lt + mc mk mso + na ne nf nh nm nn nop nr nroff ns nx + open opena os output + pc pev pi pl pm pn pnr po ps psbb pso ptr pvs pvs + rchar rd return rfschar rj rm rn rnn rr rs rt + schar shc shift sizes so sp special spreadwarn ss sty substring sv sy + ta tc ti tkf tl tm tm1 tmc tr trf trin trnt troff + uf ul unformat + vpt vs + warn warnscale wh while write writec writem + Q[lexer.troff.heirloom] Q[lexer.troff.neatroff] + !* Flow control requests/commands with conditionals *! + 1ESSETKEYWORDSif ie while + !* Flow control requests/commands without conditionals *! + 2ESSETKEYWORDSel nop + !* Requests and commands, initiating ignore blocks *! + 3ESSETKEYWORDSig + !* Requests and commands with end-macros. + Mom macros alias MAC to de. *! + 4ESSETKEYWORDSam am1 de de1 MAC + + :M[color.keyword],1M[color.set] + :M[color.preproc],2M[color.set] + :M[color.number],3M[color.set] + :M[color.operator],4M[color.set] + :M[color.string],5M[color.set] + :M[color.comment],6M[color.set] + !*:M[color.comment],7M[color.set]*! + 7U.i 20<:M[color.variable],%.iM[color.set]> + :M[color.preproc2],17M[color.set] +} |