Support # and . in lisps

Elisp uses # for sharp-quoting, and some Schemes use # for vector
literals.

. is used for dotted pair notation.
pull/25/head
Wilfred Hughes 2021-07-18 23:18:55 +07:00
parent bb55867119
commit 75839a1185
2 changed files with 4 additions and 2 deletions

@ -8,6 +8,8 @@ Improved parsing for Rust punctuation.
Improved parsing for OCaml punctuation.
Improved parsing for `#` and `.` in Scheme and Emacs Lisp.
### Diffing
Reduced memory usage when diffing.

@ -72,7 +72,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[a-zA-Z0-9_?:/*-]+',
# Operators
"[`',]",
"[`',#.]",
]
string_patterns = [
# String literals
@ -92,7 +92,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'#?[a-zA-Z0-9_?:/*-]+',
# Operators
"[`',]",
"[`',#.]",
]
string_patterns = [
# String literals