Commit 290cb50
authored
Add spread to syntax highlighting (#174)
* Add spread to syntax highlighting
Fixes #173.
* Extend spread sytnax highlighting to commands and params
* Make spread regex more restrictive
* Make spread more specific to tables and commands
* Fix spread tokens in parameter list
Replaces `include` with a capture for the existing regex.
* Extend spread syntax highlighting change to flags
Traps command flags and shortcuts bare string parsing.
* Fix and clean up flag highlighting
Reuses an unused `parameters` expression. Fixes broken word boundary with whitespace lookbehind instead. Also fixes previous `(.+)` (code smell) matching the entire command.1 parent bd9d19f commit 290cb50
1 file changed
+27
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | | - | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
| 223 | + | |
216 | 224 | | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
220 | | - | |
221 | | - | |
| 228 | + | |
222 | 229 | | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
226 | | - | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
243 | 250 | | |
244 | 251 | | |
245 | 252 | | |
246 | | - | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
254 | | - | |
| 261 | + | |
255 | 262 | | |
256 | 263 | | |
257 | 264 | | |
| |||
260 | 267 | | |
261 | 268 | | |
262 | 269 | | |
263 | | - | |
264 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
265 | 275 | | |
266 | 276 | | |
267 | 277 | | |
| |||
561 | 571 | | |
562 | 572 | | |
563 | 573 | | |
| 574 | + | |
564 | 575 | | |
565 | 576 | | |
566 | 577 | | |
| |||
643 | 654 | | |
644 | 655 | | |
645 | 656 | | |
646 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
647 | 662 | | |
648 | 663 | | |
649 | 664 | | |
650 | 665 | | |
651 | 666 | | |
652 | 667 | | |
653 | | - | |
| 668 | + | |
654 | 669 | | |
655 | 670 | | |
656 | 671 | | |
| |||
667 | 682 | | |
668 | 683 | | |
669 | 684 | | |
670 | | - | |
671 | 685 | | |
672 | 686 | | |
673 | 687 | | |
| |||
0 commit comments