| 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
|
|
|
|
|
|
|
|
|
| |
Docs: https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
Removes mixing code with configuration. No need to execute custom code
at the build step. The declarative configuration is also more friendly
to scripting.
Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
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.
|
|
|
| |
see #1660
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
| |
| | |
Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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
|