Skip to content

Commit

Permalink
Add | to the allowed symbols chars #132
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Dec 9, 2024
1 parent edfa732 commit 090ae0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### WIP
### 4.3.2 - Dec 9, 2024

- Clarified some symbol/keyword edge cases in syntax
- Add `clojure_sublimed_select_topmost_form` command
- Add `|` to the allowed symbols chars #132

### 4.3.1 - Nov 4, 2024

Expand Down
6 changes: 3 additions & 3 deletions Clojure (Sublimed).sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ variables:
wse: '(?=$|[\s,()\[\]{}";])'
nwse: '[^\s,()\[\]{}";]'

sym_head: '[\p{Alpha}*!_?$%&=<>.]'
sym_head_lax: '[\p{Alpha}*!_?$%&=<>.''\-+#:]'
sym_body: '[\p{Alpha}*!_?$%&=<>.''\-+#:0-9]'
sym_head: '[\p{Alpha}*!_?$%&=<>.|]'
sym_head_lax: '[\p{Alpha}*!_?$%&=<>.|''\-+#:]'
sym_body: '[\p{Alpha}*!_?$%&=<>.|''\-+#:0-9]'
ns_symbol: '(?:[\-+.]|[\-+.]{{sym_head_lax}}{{sym_body}}*|{{sym_head}}{{sym_body}}*)'
symbol: '(?:/|{{ns_symbol}})'

Expand Down

0 comments on commit 090ae0d

Please sign in to comment.