| Age | Commit message (Collapse) | Author | Files | Lines |
|
Upper bound lexing time and cancel highlighting if it is exceeded.
|
|
`operator` variable matches "#", leaving nothing for the comments rule
to match. Since "#" only marks comments in TOML, I just went ahead and
removed the character from the `operator` token.
|
|
According to the TOML github page[1], indentation can be tabs *and/or*
spaces, so `indent_error` is removed.
[1] https://github.com/toml-lang/toml#example
|
|
|
|
|
|
|
|
Adapt in_tag to surrounding coding stlye and use the same simplified
version in html, wsf and xml lexers.
|
|
the new pattern does more or less the same thing, but forward
instead of backward.
|
|
|
|
Fix #665
|
|
Close #761
|
|
TODO: keys should only be highlighted in {} mappings.
|
|
|
|
|
|
Otherwise, show-{tabs,newlines,spaces} replacement characters are
undistinguishable from normal text.
|
|
- Fixed order of rules.
- Some “keywords” were identified as “type”, now corrected.
- Added compiler-specific common __keywords.
- Added boolean and additional integer constants.
- Added support for number suffixes.
- Removed “#if 0“ comments, because it needs some work on the else
branch.
|
|
Or else the following:
<<EOF
....
EOFXYZ
parsers incorrectly.
|
|
http://fantom.org/
|
|
|
|
Adds `extend`, `include`, `module_function` and `require_relative`.
|
|
|
|
Fix #686
|
|
Close #647
|
|
|
|
|
|
See https://reasonml.github.io/docs/en/comparison-to-ocaml.html
for major differences between Reason and OCaml.
|
|
|
|
* 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
|
|
|
|
This allows to end PHP code sections. Otherwise token is treated as part of the comment and parser continues to parse whatever is after.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
This allows lines like
: ${FOO:="${bar}/baz"}
to be highlighted correctly.
|
|
This should fix #412 properly.
|
|
Commit 3570869c removed the lexers sub directory from the Lua search
path. Update the comment and readme to reflect this change.
|
|
|
|
|