skuroda / PersistentRegexHighlight

Persistent regular expression highlighting for Sublime Text 2
MIT License
53 stars 9 forks source link

color:scope not working - Sublime Build 3126 #20

Open livfwd opened 7 years ago

livfwd commented 7 years ago

I cannot get anything but what appears to be the default highlight style of white background / black foreground to work.

In my PeresistentRegexHighlight.sublime-settings file I have

{
    "regex": [
        {
            "pattern": "TODO",
            "color_scope": "todo",
            "ignore_case": false
        }
    ],
    "enabled": true,
    "on_load": true,
    "on_modify": true,
    "disable_pattern": [],
    "max_file_size": 0,
    "whitelist_folders": []
}

In my custom theme file w/ extension .tmTheme I have:

<dict>
  <key>name</key>
  <string>Regex Highlight</string>
  <key>scope</key>
  <string>todo</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#af02f7</string>
  </dict>
</dict>

I have also tried putting a color in instead of color_scope and was prompted to add the color to my .tmTheme file, which I did, but that did not work either.

skuroda commented 7 years ago

Hmm, I'm not sure. I used the same settings in contents in User/PeresistentRegexHighlight.sublime-settings as well as added the scope definition in my tmTheme file and everything seemed to work okay. Can you double check the dictionary entry is within the array block in the theme file.

gemisigo commented 7 years ago

Any news on this one? A few days ago some my beautiful colored highlights got replaced by white foreground + black background.

skuroda commented 7 years ago

@gemisigo, I haven't been able to reproduce the issue. If possible, could you post your color scheme file and settings. Perhpaps there's something specific that isn't working as expected. It's worth noting that I haven't made any changes to this plugin in quite a long time. Do you know if there have been any updates to other plugins you have that might be interfering? Note that I don't know that that is the case, I'm just throwing some ideas out there.

gemisigo commented 7 years ago

I've dropped and reinstalled a few packages and reset color scheme several times and now it seems that only some colors are not applied. I'll attach the color scheme and settings accompanied by a screenshot of how it is seen on my display.

PersistentRegexHighlight.zip

gemisigo commented 7 years ago

I'm out of ideas. There's no way I can those few colors to manifest.

skuroda commented 7 years ago

@gemisigo realize this may be months to late (haven't had time to look at plugins. But if it's still a problem, can you check that the color scheme is correct in your preferences? I wonder if the auto generation of the color schemes I had got screwed up. I'm adding a property to disable the creation for folks that generate the theme files themselves.