-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Information:
Tested in https://prismjs.com/test.html#language=scheme
Description
first argument inside parentheses not always should be mark as function name
Example
'(foo bar baz)
`(foo bar baz)
#(foo bar baz)
'#(foo bar baz)(NOTE: GitHub is also wrong about this).
in those cases first token should not be function. I think (not 100% sure) that you only need (?:$|\s|\()\( in front of the regex (maybe just in case (?:$|[()[\]\s])[([] to support brackets and open close before) that match function call if before parentheses is not space, bracket or beginning of the of the string it should not be marked as function call.