这实际上是个很愚蠢的问题。 我想要做什么。
(position ?; "This is a test; or is it?")
很遗憾,字体锁定是基于正则表达式的,因此它将代码的一部分视为注释并进行了高亮显示。
如何解决这个问题呢?目前我有两种方法:
(defconst semicolon (aref ";" 0))
(position semicolon "This is a test; or is it?")
或者
(position 59 "This is a test; or is it?")
(position ?\; "This is a test; or is it?")
- giordano