Commit 3d6449a0 authored by Jamie A. Jennings's avatar Jamie A. Jennings

In the definition of "things that are probably identifiers", the character ":"...

In the definition of "things that are probably identifiers", the character ":" has been removed.  Now, "foo:bar" will match as a word, a punctuation symbol, and another word.  Previously, it would have matched in its entirety as an identifier.  Recall that the entire "all" package is ad hoc, designed for no specific use case.  Users may wish to design their own alternative to the "all" package to suit their needs.
parent 74a48991
Pipeline #24426125 passed with stage
in 1 minute and 45 seconds
......@@ -11,7 +11,7 @@ import ts, date, time, net, num, id, word
-- Here are some ways of distinguishing identifiers from ordinary words. These are
-- ad hoc patterns, and they may or may not meet your needs.
alias special_char = [_$:]
alias special_char = [_$]
alias id_char = [[:alnum:] special_char]
alias has_special_chars = { special_char+ [:alpha:] id_char* } /
{ [:alpha:] [:alnum:]* special_char id_char* !<":"}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment