| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #2256
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Added:
- support for space delimitor in every case, included multiline value
- check for odd number of backslash escapes
- "!" as comment start
- support for escape of spaces and separators
Dropped:
- undocumented ";" and "//" comment start
|
|
|
| |
Merge consecutive tokens together where possible.
|
| |
|
| |
|
|
|
| |
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
|
|
|
| |
Also fix a broken link and decode as UTF8 in count_token_references.py.
|
| |
|
| |
|
|
|
|
|
| |
Make it parse comments that are not their own line.
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Cleanup
* Add scope access operator
* Add enum keyword
* Update test ref
* Fix bug for tokenizing number formats
* Add pr to CHANGES
|
| |
|
|
|
|
| |
Adds support for SSE/AVX/AVX-512 registers and 'rel' and 'abs' address
operators.
|
|
|
|
|
|
|
|
|
|
| |
* Add GAP console session mode
This is also appropriate for GAP .tst files.
Add `analyse_text` methods for `ScilabLexer` and `GAPConsoleLexer` to
distinguish Scilab and GAP .tst files
* Use explicit name for 'keepends' argument to splitlines
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes an issue where in code like this:
```
int foo(float bar) // hello() {}
```
The lexer would match `(float bar) // hello()`
as the parameters of the function `foo`, instead
of just `(float bar)`.
In addition, a similar test case to what was originally
reported in #2208 is added.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
declarations (#2208)
Something like
id id2("){ ... }");
is no longer wrongly recognized as a "function"
id id2(") {
...
}
");
As the difference in the tests shows, this has the unfortunate side
effect that we no longer highlight something like
int f(param="default");
as a function declaration, but it is hard to imagine another way to
fix this (cf. “most vexing parse” problem).
Fixes #2207
|
|
|
|
| |
\\\\|\\. is like \\. but causes catastrophic backtracking inside (...)* .
|
|
|
|
| |
Very sorry about this!
|
|
|
|
|
|
|
|
| |
Disable highlighting of unicode escape codes in python bytes literals,
as described in
https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals.
So escape codes of the form "\N{name}", "\uxxxx" and "\Uxxxxxxxx" will
no longer be highlighted within bytes literals. Add tests for escape
code highlighting in string and bytes literals.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: andy <andy.yu2k@gmail.com>
Co-authored-by: Jean-Abou-Samra <jean@abou-samra.fr>
|
|
|
|
|
| |
* Added COMAL-80 language highlight.
Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
|
|
|
|
| |
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
|
| |
|
|
|
| |
Co-authored-by: Fabian Huch <huch@in.tum.de>
|
|
|
|
|
|
| |
- Add new predeclared identifiers: `any` and `comparable`
- Add new operator for type parameters: `~` and `|`
Ref: https://go.dev/ref/spec
|
|
|
|
|
|
| |
the output
Fixes #2166
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #2162
|
|
|
|
| |
Fixes #2163
|
| |
|
|
|
|
|
|
|
|
|
| |
identifiers (#2158)
. is not an operator in Coq: in this specific usage, it is only meant to build a qualified name, so this rule really corresponds to a proper lexical rule in Coq
Unlike most languages, Coq has a large set of special words that are not reserved: they may still be used as identifiers. For example Prop is a special word, which currently gets highlighted as such in Equations.Prop.Equations, but it should be recognized as a regular name there. Because of how flexible the syntax of Coq is, it's not straightforward to disambiguate things with just a bunch of regexes, so we have to rely on heuristics. Skipping qualified names from being recognized as keywords is an easy win.
|
| |
|
|
|
|
| |
Fixes #2145
|
|
|
| |
Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
|
|
|
| |
Use `Name.Builtin`.
|
|
|
|
| |
Don't rely on the error message since 'missing 1 required positional
argument' can give false positives. Instead, use issubclass().
|
|
|
| |
Co-authored-by: Chung Tai <chungtai456@gmail.com>
|
|
|
|
|
| |
* Ada 2022: adding support for at sign
* Ada 2022: adding support for square brackets
* Ada 2022: introducing test for new syntactic additions
|