From 5b6b7df1acf78c38a9a2ec6f39c5c77d5871c68b Mon Sep 17 00:00:00 2001 From: Jesse Steele <9209377+JesseSteele@users.noreply.github.com> Date: Sun, 24 Jan 2021 16:03:38 +0800 Subject: [PATCH] Adding '$' character for highlight-selected Per this thread at Atom: https://discuss.atom.io/t/double-click-highlights-whole-of-variable-in-php/18625 Double-cliccking a variable is not recognized by highlight-selcted by the original default setting for Non-word characters. Adding a '$' character to the beginning fixes this problem so highlight-selected pics it up. If there is another way to solve this problem so double-clicked variables highlight, by all means, do that instead. --- settings/language-php.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/language-php.cson b/settings/language-php.cson index 22bcace7..15e9ac9a 100644 --- a/settings/language-php.cson +++ b/settings/language-php.cson @@ -3344,4 +3344,4 @@ 'decreaseIndentPattern': '^(.*\\*/)?\\s*(}|(\\)+([;,]|\\s*{))|(\\]\\)*([;,]|$))|else:|((end(if|for(each)?|while|switch));))' '.text.html.php': 'editor': - 'nonWordCharacters': '/\\()"\':,.;<>~!@#%^&*|+=[]{}`?-' + 'nonWordCharacters': '$/\\()"\':,.;<>~!@#%^&*|+=[]{}`?-'