Created
March 17, 2015 09:25
-
-
Save L42y/d515b3173f8c0ef60fe1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcustom pm-host/js2 | |
(pm-bchunkmode "JS2" | |
:mode 'js2-mode) | |
"JS2 host innermode" | |
:group 'hostmodes | |
:type 'object) | |
(defcustom pm-inner/web | |
(pm-hbtchunkmode "JSX" | |
:mode 'web-mode | |
:head-reg "\\((\\)[[:space:]\n]*<" | |
:tail-reg ">[[:space:]\n]*\\()\\)") | |
"JSX innermode for web-mode" | |
:group 'innermodes | |
:type 'object) | |
(defcustom pm-poly/js2+web | |
(pm-polymode-one "JS2" | |
:hostmode 'pm-host/js2 | |
:innermode 'pm-inner/web) | |
"JS2 polymode" | |
:group 'polymodes | |
:type 'object) | |
(define-polymode js2-web-mode pm-poly/js2+web) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment