Commit Graph

27 Commits (5d2c14a3f9920d7b8f8e5445e9fcda334e3fcf09)

Author SHA1 Message Date
Wilfred Hughes c184a7da8f Improve string literal parsing and add unit tests 2021-07-20 20:07:21 +07:00
Wilfred Hughes c48e8e2977 Improve JS and JSON parsing 2021-07-20 01:18:39 +07:00
Wilfred Hughes 7bd8afc439 Improve handling of = and & in lisps 2021-07-20 01:09:29 +07:00
Wilfred Hughes 49ec9d68cc Improve OCaml parsing for := and !
Fixes #20
2021-07-19 23:04:03 +07:00
Wilfred Hughes 6fb01cf7d3 Lex string literals with escaped delimiters 2021-07-18 23:42:36 +07:00
Wilfred Hughes ad81a86419 + is a legal symbol constituent in elisp 2021-07-18 23:40:46 +07:00
Wilfred Hughes 88b0ec2283 & is legal in elisp
It's used for variadic functions.
2021-07-18 23:25:56 +07:00
Wilfred Hughes 75839a1185 Support # and . in lisps
Elisp uses # for sharp-quoting, and some Schemes use # for vector
literals.

. is used for dotted pair notation.
2021-07-18 23:18:55 +07:00
Wilfred Hughes 42d186c237 OCaml allows ; as punctuation too
Fixes #19
2021-07-17 00:02:59 +07:00
Wilfred Hughes 6de4464599 Recognise - as OCaml punctuation
- needs to occur as the last item in a [..] regexp.
2021-07-15 23:56:20 +07:00
Wilfred Hughes 00fcd4652a Recognise # and <- as OCaml punctuation
Fixes #18
2021-07-15 23:54:53 +07:00
Wilfred Hughes a2e36cac46 Add more two-character lexems to Rust parser 2021-07-13 23:36:52 +07:00
Wilfred Hughes 8b382e4356 Improved OCaml handling
Fixes #17
Fixes #15
2021-07-13 22:52:13 +07:00
Wilfred Hughes 5c644baf7c Treat .. as a single atom in Rust 2021-07-10 17:13:07 +07:00
Wilfred Hughes ce35a5cc3a Support $( ... ) and $foo in Rust
Closes #14
2021-07-09 22:54:11 +07:00
Wilfred Hughes 3e199ed645 Treat && || ++ -- and * as single tokens in JS 2021-07-07 22:13:23 +07:00
Wilfred Hughes c43e724caf Ensure :: is treated as a single token in Rust 2021-07-07 22:02:20 +07:00
Wilfred Hughes 5463c120f4 Better punctuation parsing for JS and OCaml
Closes #7
2021-07-07 19:53:45 +07:00
Wilfred Hughes ccaca6f6a6 Rust: Consider , as separate punctuation
Closes #8
2021-07-07 19:51:49 +07:00
Wilfred Hughes e6df1dfaa2 Rust parser: try to distinguish characters from lifetimes 2021-07-07 19:50:18 +07:00
Wilfred Hughes be94cd97ee Handle . and ? as Rust punctuation
Fixes #6
2021-07-06 22:59:19 +07:00
Wilfred Hughes 76ef7c510c Teach syntax about Rust lifetimes 2021-07-04 12:59:17 +07:00
Wilfred Hughes 6858b97115 : and ; are punctuation in CSS 2021-06-22 21:48:34 +07:00
Wilfred Hughes ebe342f87c * is a legal symbol constituent in lisps 2021-06-22 00:12:35 +07:00
Wilfred Hughes 770c973b20 Add ! and # to Rust punctuation 2021-06-20 22:29:18 +07:00
Wilfred Hughes 6569ecb1c6 Treat | as punctuation in Rust 2021-06-20 22:05:31 +07:00
Wilfred Hughes 3b033c1438 Embed syntax.toml in binary 2021-06-20 16:32:22 +07:00