| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* WIP: Add failing test for a matlab class with properties.
* Add some missing keywords
* Add leading \s* matchers to things above the command form regex, as it tends to swallow keywords otherwise.
* Add support for the special 'properties' block syntax.
* Fix apparent infinite loop when given garbage input.
* Use includes to clean up some of my copypasta.
* Fix negative lookahead when there's more than one space between operators.
* Use Whitespace not Text for spaces; combine adjacent whitespace.
* Add support for declarative property constraints.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pyupgrade is a tool to automatically upgrade syntax for newer versions
of the Python language.
The project has been Python 3 only since
35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups:
- Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all
source files as utf-8 by default.
- Replace IOError/EnvironmentError with OSError. Python 3 unified these
exceptions. The old names are aliases only.
- Use the Python 3 shorter super() syntax.
- Remove "utf8" argument form encode/decode. In Python 3, this value is
the default.
- Remove "r" from open() calls. In Python 3, this value is the default.
- Remove u prefix from Unicode strings. In Python 3, all strings are
Unicode.
- Replace io.open() with builtin open(). In Python 3, these functions
are functionally equivalent.
Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
| |
* introduce and apply rfstringescape
* add unit test for raw f-strings
* add further tests
* fix comment
|
| | |
|
| | |
|
| |
|
|
| |
constant returns from analyse_text are not useful.
|
| | |
|
| |
|
|
| |
fixes #1679
|
| | |
|
| |
|
|
|
|
|
| |
This reverts commit bd378d0ef57a6bc53e9079c9363a6eab0d54f0dc.
The license terms in dracula.py don't match. We'll add it back once the
author places it under the correct license.
|
| | |
|
| | |
|
| |
|
| |
Maybe close #931
|
| |
|
|
|
| |
* support added for css variables
* [-]+ instead of [-]*
|
| | |
|
| |
|
| |
I found `__END_LINE__` magic constant is missing in syntax highlighting for Crystal language.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* improve fenced code recognition for markdown lexer
* improve inline code detection
* improve detection of some Markdown keywords
* remove Markdown recognition of code indented by 4 spaces as reliable detection is not possible with regex
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* crystal: drop all classes from builtins; these aren't normally highlighted
("normally" meaning all other highlighter tools)
* crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters
It seems that Ruby supports strings such as `%*text*` where `*` can be anything. But Crystal never had anything like that. It does, however, keep `%|text|`, so add a case for that.
* crystal: update keywords and builtins
* crystal: fix string literals and escape sequences
Update list of escapes. Support Unicode escape sequences.
Also remove the Ruby-specific `:@foo` symbol syntax, Crystal doesn't have it.
* crystal: uppercase identifiers aren't always constants
Make `FOO::Bar` be highlighted like `Foo::Bar` would be, rather than like `FOO`
* crystal: annotations can be namespaced
Highlight the entire inside part of `@[Foo::Bar]`, not just the `Foo` part
(these used to be named 'attributes' but the official name is 'annotations' now, so I also change that)
* fixup! crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters
|
| |
|
|
|
|
|
|
|
|
|
| |
* Unicode support for Coq
Catch-all lexing for `Name.Builtin.Pseudo`, as in the lean lexer.
This fixes #678.
* Coq lexer: improve `analyse_text`
* Add a test for Coq
|
| |\
| |
| |
| | |
felixhao28-master
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Some of the keywords are missing for JavaScript and TypeScript.
And some of reserved keywords have been moved to
`keywords` and `declarations keywords`.
There are also non-existent builtins that I removed.
Added missing builtins.
|
| | |
| |
| |
| |
| |
| | |
This should revert the behavior of the function without losing
the overall caching behavior that was intended.
Closes #1644
|
| | |
| |
| |
| | |
in is a keyword in Bash, ZSH, and KSH.
|
| | |
| |
| | |
maybe close #1543
|
| | | |
|
| | |
| |
| | |
Resolves #1646
|
| |\ \
| | |
| | |
| | | |
fixes #1645
|
| | | |
| | |
| | |
| | | |
straight forward
|
| |/ / |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
* added dracula theme style
* added dracula style to init
* corrected misspell
* Update __init__.py
|
| | | |
|
| | |
| |
| |
| | |
fixes #1616
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
fixes #1638
|
| | |
| |
| |
| | |
fixes #1637
|
| | |
| |
| |
| |
| | |
Reason was a lookahead-only pattern which was included in the state
where the lookahead was transitioning to.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Explicitly handle unclosed <script> and <style> tags which previously
would result in O(n^2) work to lex as Error tokens per character up to
the end of the line or end of file (whichever comes first).
Now we try lexing the rest of the line as Javascript/CSS if there's no
closing script/style tag. We recover on the next line in the root state
if there is a newline, otherwise just keep parsing as Javascript/CSS.
This is similar to how the error handling in lexer.py works except we
get Javascript or CSS tokens instead of Error tokens. And we get to the
end of the line much faster since we don't apply an O(n) regex for every
character in the line.
I added a new test suite for html lexer (there wasn't one except for
coverage in test_examplefiles.py) including a trivial happy-path case
and several cases around <script> and <style> fragments, including
regression coverage that fails on the old logic.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
* testing turtle prefix names where reference starts with number
* remove case insensitive flag from Turtle lexer
* use same end-of-string regex as in SPARQL and ShExC
* make example.ttl valid turtle
|