diff options
| author | Jackson Ray Hamilton | 2019-02-17 21:16:13 -0800 |
|---|---|---|
| committer | Jackson Ray Hamilton | 2019-04-08 22:48:21 -0700 |
| commit | 4d2b5bbfebc040ca477f1156b44989b4e19bbc3e (patch) | |
| tree | baf41c198d666df2175fa13b74060860d1d95d7c /src/thread.h | |
| parent | 52a3113b9beae6672c4bc981ee0c7bcc84ee58b5 (diff) | |
| download | emacs-4d2b5bbfebc040ca477f1156b44989b4e19bbc3e.tar.gz emacs-4d2b5bbfebc040ca477f1156b44989b4e19bbc3e.zip | |
Font-lock JSX while editing it by extending regions
* lisp/progmodes/js.el (js-jsx--font-lock-keywords):
Call tag beginning and end matchers.
(js-jsx--match-tag-beg, js-jsx--match-tag-end): New functions.
(js-jsx--syntax-propertize-tag): Record buffer positions of JSXElement
beginning and end for font-locking.
(js--syntax-propertize-extend-region)
(js-jsx--syntax-propertize-extend-region): New functions for extending
the syntax-propertize region backwards to the start of a JSXElement so
its JSXAttribute children on its n+1th lines can be parsed as such
while editing those lines.
(js-mode): Add js--syntax-propertize-extend-region to
syntax-propertize-extend-region-functions.
Diffstat (limited to 'src/thread.h')
0 files changed, 0 insertions, 0 deletions