Camel Case with single quotes doesnt work as expected #177
-
Hi, I tried to debug and I think that the problem is in this line: Line 465 in 09969c5 The regex "\([[:upper:]]?[[:lower:]]+\)\(?:[[:upper:]][[:lower:]]+\)+\>" doesn't match when the word wrapped with single quotes. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I can reproduce this problem. I think the problem is that Jinx has special handling for apostrophes at the beginning or end of words. See this code right before the regexp, you've mentioned: Lines 452 to 460 in 09969c5 I am happy to take a patch, if we figure out a way to handle this edge case. Otherwise I consider this a low priority issue, given that I hope to preserve the existing apostrophe handling. EDIT: I gave it a try and the problem is exactly as you described. It is simple: The regexp doesn't match since the single quote is treated as part of words (apostrophe). I am afraid we cannot easily fix this by default. However it should be possible to reconfigure the single quote as non-word character in the |
Beta Was this translation helpful? Give feedback.
I can reproduce this problem. I think the problem is that Jinx has special handling for apostrophes at the beginning or end of words. See this code right before the regexp, you've mentioned:
jinx/jinx.el
Lines 452 to 460 in 09969c5
I am happy to take a patch, if we figure out a way to handle this edge case. Otherwise I consider this a low priority issue, given t…