Commit graph

19 commits

Author SHA1 Message Date
Abdussalam Abdurrahman
3f16600ec1 [clojure] Fix tokenization of escapes in strings
The notation for escapes in strings follows that of the host platforms
which is different from the notation for character literals in Clojure
(e.g., "\n" vs `\newline`).
2018-12-07 12:30:10 -08:00
Abdussalam Abdurrahman
223c3eb54f [clojure] Improve the regular expressions for various symbols. 2018-12-06 17:36:06 -08:00
Abdussalam Abdurrahman
c77f11b1b0 [clojure] Add a word boundary to ensure exact matches for (comment ...). 2018-12-06 17:36:06 -08:00
Abdussalam Abdurrahman
c65a13afa1 [clojure] Add support for (comment ...). 2018-09-11 23:06:18 -07:00
Abdussalam Abdurrahman
1188cfa1bb [clojure] Fix regular expression for character literals.
Consolidate regular expressions for line and in-line comments.
2018-09-11 21:41:03 -07:00
Abdussalam Abdurrahman
073f212f63 [clojure] Improve Clojure syntax highlighting.
This commit:
- Updates the keyword list with public symbols from `clojure.core` for
Clojure 1.9.
- Improves syntax highlighting of symbols, strings, character literals,
and number literals.
- Adds rules for syntax highlighting Clojure keywords and reader macro
characters.
- Fixes an issue where forms following a single semicolon (`;`) are not
marked as comments.
- Fixes an issue where parts of multi-line strings were not correctly
syntax highlighted.
- Adds additional test coverage for tokenization code.
2018-09-11 18:57:40 -07:00
masad-frost
76f0f15077 Remove code for comments 2018-07-02 19:03:02 -07:00
masad-frost
0a0c14ab03 Use tabs 2018-06-09 02:46:29 -07:00
masad-frost
18e09b4100 Fix broken comments 2018-06-09 02:45:50 -07:00
masad-frost
520915ef46 Add regexp 2018-06-09 00:33:26 -07:00
masad-frost
12294521e0 Add ns and defn- to definitions 2018-06-09 00:33:14 -07:00
masad-frost
6f38c8fe44 Move boolean and str to keywords 2018-06-09 00:32:35 -07:00
masad-frost
79eaf088de Add defn- and include hyphen in boundary 2018-06-09 00:18:17 -07:00
masad-frost
6f3c349061 Fix hex numbers 2018-06-08 23:47:44 -07:00
masad-frost
9987c4fd86 Prettier 2018-06-08 23:45:35 -07:00
Avelino
4f1958ac27 fixed clear \\ to \ on keywords 2018-05-31 06:39:50 -03:00
Avelino
380fe86dd8 fixed keyword that contains - 2018-05-31 06:34:02 -03:00
Avelino
8bfec94690 added more keywords
Clojure has many reserved words
2018-05-31 06:23:20 -03:00
Avelino
b8cf0d688f added clojure support
refs:
https://github.com/Microsoft/monaco-editor/issues/828
https://github.com/theia-ide/theia/issues/1717
2018-05-30 11:26:52 -03:00