这是个愚蠢的问题,真的。我想做的是
(position ?; "This is a test; or is it?")不幸的是,font-lock是基于regex的,所以它突出显示了代码的一部分作为注释。
处理这个问题的最好方法是什么?目前,我有两种选择
(defconst semicolon (aref ";" 0))
(position semicolon "This is a test; or is it?")或
(position 59 "This is a test; or is it?")发布于 2013-06-30 20:50:16
您应该使用反斜杠转义分号:
(position ?\; "This is a test; or is it?")https://stackoverflow.com/questions/17390381
复制相似问题