]> git.eshelyaron.com Git - emacs.git/commit
Identify JSX strings (for js2-mode)
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 8 Apr 2019 14:47:37 +0000 (07:47 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 9 Apr 2019 05:48:24 +0000 (22:48 -0700)
commit3eadf1eff43c84a1095094334549a1e0d1e75d80
tree5685d1280968cf57b35c7aeb642370a29962fe61
parente48306f84f1aeb4409cc02ae864f33e7af657288
Identify JSX strings (for js2-mode)

* lisp/progmodes/js.el (js-jsx--syntax-propertize-tag): Derived modes
like js2-mode may use font-lock-syntactic-face-function to apply faces
to JSX strings (and only JSX strings).  Apply the js-jsx-string text
property to such strings so they can be distinctly identified.
(js-jsx--text-properties): Ensure the js-jsx-string text property gets
cleaned up, too.
lisp/progmodes/js.el