aboutsummaryrefslogtreecommitdiffstats
path: root/src/xml.c
diff options
context:
space:
mode:
authorJackson Ray Hamilton2019-02-17 21:16:13 -0800
committerJackson Ray Hamilton2019-04-08 22:48:21 -0700
commit4d2b5bbfebc040ca477f1156b44989b4e19bbc3e (patch)
treebaf41c198d666df2175fa13b74060860d1d95d7c /src/xml.c
parent52a3113b9beae6672c4bc981ee0c7bcc84ee58b5 (diff)
downloademacs-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/xml.c')
0 files changed, 0 insertions, 0 deletions