aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers
AgeCommit message (Collapse)AuthorFilesLines
2018-01-27lexers: improve scheme lexerMurray Calavera1-59/+190
* fix character literals (#\" no longer quotes the entire file etc.) * properly nest block comments and support simplified datum comment * add r7rs keywords, functions and directives * fix identifiers - pipes were not recognized as delimiters - some valid identifiers were not recognized - some were partially parsed as keywords - quoting only worked on plain alphanumeric identifiers * fix numbers (some valid numbers were not recognised) * dont parse boolean constants as functions
2018-01-27lexers: pony missing tilde for unsafe operatorsMurray Calavera1-1/+1
2018-01-24PHP lexer: stop line comments right before ?>pystub1-1/+1
This allows to end PHP code sections. Otherwise token is treated as part of the comment and parser continues to parse whatever is after.
2017-12-25lexers: add ponyMurray Calavera2-1/+115
2017-12-01Python lexer: recognize python3's async/await keywordsСемён Марьясин1-0/+1
2017-11-20Update erlang syntax lexer.Emil Falk1-39/+20
2017-10-01Add `xs` lexer and mappings.David B. Lamkins1-0/+75
2017-09-15lexers: fix white space issue of recent php lexer changesMarc André Tanner1-40/+40
2017-07-26- added php constantsSamuel1-0/+25
2017-07-26- updated php keywordsSamuel1-12/+20
2017-07-24lexers: add copyright statement to strace lexerMarc André Tanner1-0/+1
2017-07-09Add Myrddin lexer and filetypes entryMichael Forney1-0/+72
2017-05-30lexer: add simple strace(1) output lexerMarc André Tanner1-0/+31
2017-05-12Add a whitespace rule for the "elixir" lexer.Tynan Colin Beatty1-0/+1
2017-03-31lexers: sync with scintillua changeset 600 rev fdeca0b808bfMarc André Tanner4-21/+179
I think the default value for the cache argument to the lexer load function should be true, not false. Optimize for the common case. This makes the API ugly/harder to use. But for now we follow upstream.
2017-03-24lexers: fix perl pattern for horrible regex linesS. Gilles1-0/+3
Under presently-not-precise circumstances, regex patterns longer than a screenful can cause first_match_pos to be nil. In this sutation, evaluating `first_match_pos - 1' will be an error, so jump to matchless case.
2017-03-19Fix errors and add ANS Forth 2012 keywordsstutonk1-17/+31
Added all ANS Forth 2012 keywords as defined at http://lars.nocrew.org/forth2012/core.html and removed keywords that were not part of the standard. This necessitated rewriting most of the Strings rules as well as removing some rules not consistent with the standard. Only the s\" form should allow escaping. The list of characters which may appear as part of a keyword has also been expanded where appropriate. Because '.' is a keyword as well as the first chatacter in a string pattern, strings must now be given parsing precedence over keywords to ensure proper highlighting. A few errors were also fixed such as moving the true (which should make keywords case-insensitive) within the word_match function's closing paren. Parens have been removed from the operator list and moved to their correct place as the delimiters for block comments.
2017-02-25lexers: sync with scintillua changeset 594 rev 6e29a8d2a783Marc André Tanner26-60/+71
Stuff which was left out / our local changes include: - lexer.lua: different loading mechanism and style handling - ansi_c.lua: for now we keep the separate token definitions with references to the respective standards. This should highlight file names after #include directives. It will also treat simple, non-nested occurrences of #if 0 ... #endif as a comment. - pkgbuild.lua: the arch specific fields have been kept - all scintilla $(style variables) have been replaced
2017-02-07Allow {} to be nested in shell variablesS. Gilles1-1/+1
This allows lines like : ${FOO:="${bar}/baz"} to be highlighted correctly.
2017-02-02lexer: fix scheme token rule orderingMarc André Tanner1-1/+1
This should fix #412 properly.
2017-02-02update comment and readme about lua pathChristian Hesse1-1/+2
Commit 3570869c removed the lexers sub directory from the Lua search path. Update the comment and readme to reflect this change.
2017-01-19lexer: sync with scintillua changeset 582 rev d70a5ee43d38Marc André Tanner106-119/+131
2017-01-19lexer: update READMEMarc André Tanner1-12/+18
2017-01-19lexer: update C lexer to C11 and add POSIX errno constantsMarc André Tanner1-6/+50
The most apparent change is that NULL is now also highlighted, the themes might need to be tweaked a bit. Based on an initial patch by Christian Hesse. Close #307
2017-01-18lexer: add lexer for Parallax Spin languageDavid B. Lamkins1-0/+135
Close #466
2017-01-05lua: adjust C lexer to recognize POSIX typesS. Gilles1-3/+6
2016-12-29Add rc lexerMichael Forney1-0/+65
2016-12-07Move all lua related files to lua/ subfolderMarc André Tanner128-0/+14004
Also remove the lexers sub directory from the Lua search path. As a result we attempt to open fewer files during startup: $ strace -e open -o log ./vis +q config.h && wc -l log In order to avoid having to modifiy all lexers which `require('lexer')` we instead place a symlink in the top level directory. $ ./configure --disable-lua $ rm -rf lua Should result in a source tree with most lua specifc functionality removed.