I'm currently writing a major-mode for Emacs and am trying to figure out how to get syntax highlighting to work. My major-mode is for a lisp-like language that looks like this:
[= a 3]
[= [double x] [* x 2]]
[double a]
Basically, what I'm trying to do is write a regular expression to match all words preceded by [
but not the [
itself to highlight function calls. I've done some googling and have found that emacs does not support regexp look-behind, so how would I do this?