I’m writing my own programming language, and I’m using Sublime Text to write the code samples/tests for it. I’m more or less fine with plain text mode (I don’t care too much about having my own custom syntax highlighting for the time being), but there is one issue. My language makes extensive use of single quotes as prefixes for identifiers to prevent them from being evaluated. 'x <- y
is an assignment statement, for example, and def: 'my function, args... {body...}
is a function definition. The problem is that sublime text automatically adds a closing quote, which is incorrect in my language. I’d imagine this would be a problem for lisp users writing in Sublime Text 2 as well.
How would I prevent sublime text 2 from inserting these closing delimiters? Preferably I would like a way to put it in a custom syntax, because I value the auto-closed quotes in every other language.
As far as I can tell Sublime Text does not have capabilities to modify opening and closing delimiters for languages, because otherwise I’d imagine ruby would enable it for back ticks, and lisp would disable it for single quotes. I’m still hoping there’s an obscure setting somewhere that does exactly what I want, however. If this exists, where would I find it?