when i apply background color for a particular regex, the background color extends upto the end of the line. is it possible to make the background color just matching the word.
my syntax definition as below,
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Logging stubs
file_extensions: [log]
scope: source.log
contexts:
main:
# tuts captured
- match: '.*(Entering.*)\b'
scope: meta.function.text.plain
captures:
1: entity.name.function.text.plain
# Line starting in all caps
- match: '^[A-Z_]+\b.*'
push:
- meta_scope: markup.heading
- match: '$\n?'
pop: true
color scheme as below,
{
// http://www.sublimetext.com/docs/3/color_schemes.html
"variables": {
// "green": "#FF0000",
"lightblack": "hsl(0, 5%, 0%)"
},
"globals": {
// "foreground": "var(green)",
"line_highlight": "#00eeee",
},
"rules": [
{
"name": "markup headings",
"scope": "markup.heading",
"font_style": "bold",
"foreground": "var(black)",
"background": "var(red)"
},
{
"name": "markup bold",
"scope": "markup.bold",
"font_style": "italic",
"foreground": "var(black)",
"background": "var(blue5)",
},
{
"name": "markup headings",
"scope": "markup.heading1",
"font_style": "bold",
"foreground": "var(green)",
}
],
}