Skip to content

color:scope not working - Sublime Build 3126 #20

Description

@livfwd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions