-
The current implementation is very basic and even prone to unexpected behavior! Instead one of the following could be used to replace it:
- Longest match (https://en.wikipedia.org/wiki/Maximal_munc…
-
This is a bit complex to implement as it requires state for tracking string parts in all implementations. The lexer already uses as little state as possible so I'd like to keep string state minimal. T…
-
*Cross-posted from notepad-plus-plus/notepad-plus-plus#15801*
### Minimal reproduction
* define a substyle for server-side PHP keywords, e.g.,
```
substyles.hypertext.121=1
sub…
-
empytoken.py
```
foo_pattern = re.compile("(foo).?(variant)?[:-]?", re.IGNORECASE)
bar = foo_pattern.sub("", bar).strip()
```
```
$ semgrep -c 'r/python.lang.security.audit.regex-dos' emptytok…
Sjord updated
3 weeks ago
-
I was trying to get C-style multiline comment working in logos, the state machine for it is quite simple but I can't seem to get it working in logos. This regex seemed to work but it causes a panic wh…
-
Hi! I've been making my own devicetree parser, analyzer and LSP in [dt-tools](https://github.com/axelkar/dt-tools). Maybe we could collaborate?
In the latest revision, it uses Logos for lexing (it'…
-
rustc 1.82 accepts forms like `'r#x'y` in the 2015 edition, but rustc 1.83 (beta) rejects them.
As I understand it, #126452 wasn't intended to have any effect on the 2015 edition.
[playground]
````…
-
Clojure docs: https://www.clojure.org/guides/learn/syntax#_numeric_types
In particular, we need to support the following:
- [ ] Octal literals (prefixed with `0`)
- [ ] Hex literals (prefixed w…
jeaye updated
2 weeks ago
-
Not sure exactly how this should work -- should it take some abstract notion of a token, a lexrtl token, something I create, a CTRE-style thing, or what?
But it definitely deserves at least some inve…
-
Hello, i've started doing some Proof of concept to update the lexing / parsing to support static,
https://github.com/xdecock/cfparser
Would it be useful? should this get taken over by this proj…