Skip to main content
6 events
when toggle format what by license comment
Feb 9, 2015 at 22:15 comment added Sean Allred @Drew sorry for not providing enough detail. I don't think anchors will help in this case (for this language) since there is no specific scope reserved for commands (e.g. functions are case-sensitive, but have the same exact syntax).
Feb 9, 2015 at 22:12 comment added Drew Are you using your regexp within a function used as part of a font-lock-keywords FUNCTION? If so, perhaps you can use an ANCHOR or another means to control the scope of what you want to be case-sensitive. IOW, perhaps you can use a function that can (at that point) know just how far to search case-insensitively. If this suggestion doesn't help, ignore. But it sounds like the problem (use case) might be underspecified.
Feb 9, 2015 at 21:21 comment added Sean Allred Sorry, but only these words are case insensitive. MUMPS is an absurd language -- commands are case insensitive, but everything else is case-sensitive. Interesting that font-lock-mode provides this, though.
Feb 9, 2015 at 21:20 comment added Dan @SeanAllred: see edit. It looks like you can set font-lock-keywords-case-fold-search.
Feb 9, 2015 at 21:17 comment added Sean Allred Will this be effective when using the regular expression in font-lock keywords?
Feb 9, 2015 at 21:16 history answered Dan CC BY-SA 3.0