I am trying to get
js-mode to highlight a "shebang" (
#!/usr/bin/env node) as a comment, but my code is not working. Instead, the entire buffer is colored like a comment. I've read the documentation for
modify-syntax-entry carefully but am still not getting anywhere.
I have tried these calls and several similar combinations, but without success:
(modify-syntax-entry ?# "< 1" js-mode-syntax-table) (modify-syntax-entry ?! "< 2" js-mode-syntax-table)