Skip to content

Commit 19706e3

Browse files
💄 Updated color theme, variable patterns, and minimum required version #2 #3
1 parent 0ffb563 commit 19706e3

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

‎README.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,26 @@ You can customize the color theme by overriding the default color theme in your
114114
115115
## Release Notes
116116

117+
### 0.2.3
118+
119+
- Updated base heading pattern end token to match end of line
120+
- Updated base default placeholder style for interpreted text expression to `string.regexp`
121+
- Updated `google` and `numpy` variable pattern to accept a leading hyphen and a first uppercase character
122+
117123
### 0.2.2
118124

119125
- Updated VSCode minimum required version to `1.65.2`
120126

121127
### 0.2.1
122128

123-
- Updated syntax highlighting for variables in Google, NumPy, and Sphinx syntaxes
129+
- Updated syntax highlighting for variables in `google`, `numpy`, and `sphinx` syntaxes
124130

125131
### 0.2.0
126132

127133
- Added documentation
128134
- Added raw docstring scope support
129135
- Renamed extension specific scopes to have a more consistent naming convention
130-
- Updated `google`, `numpy`, and `sphinx` variable token regex
136+
- Updated `google`, `numpy`, and `sphinx` variable regex pattern
131137
- Updated tests
132138

133139
### 0.1.0

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "Python Docstring Highlighter",
55
"description": "Syntax highlighting for python docstring.",
66
"icon": "assets/icon.png",
7-
"version": "0.2.2",
7+
"version": "0.2.3",
88
"keywords": [
99
"python",
1010
"docstring",

‎syntaxes/base.tmLanguage.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "punctuation.definition.tag.end.docstring.python, docstring.heading.end.python"
1818
}
1919
},
20-
"match": "(?:^\\s*)()(_*[A-Z]\\w*)(:|$)",
20+
"match": "(?:^\\s*)()(_*[A-Z]\\w*)(:?$)",
2121
"name": "docstring.heading.python"
2222
},
2323
{
@@ -192,7 +192,7 @@
192192
"name": "punctuation.definition.tag.begin.docstring.python, docstring.snippet.begin.python"
193193
},
194194
"2": {
195-
"name": "entity.name.variable.docstring.python, docstring.snippet.placeholder.python"
195+
"name": "string.regexp.docstring.python, docstring.snippet.placeholder.python"
196196
},
197197
"3": {
198198
"name": "punctuation.definition.tag.end.docstring.python, docstring.snippet.end.python"

‎syntaxes/google.tmLanguage.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "punctuation.definition.tag.end.docstring.python, docstring.variable.end.google.python"
1818
}
1919
},
20-
"match": "(?:^\\s*)()((?:\\*\\*|\\*|_*)?[a-z]\\w*)((?:\\s\\(.*\\))?:)(?=\\s)",
20+
"match": "(?:^\\s*)((?:-\\s*)?)((?:\\*\\*|\\*)?[a-zA-Z_]\\w*)((?:\\s\\(.*\\))?:)(?=\\s)",
2121
"name": "docstring.variable.google.python"
2222
},
2323
{

‎syntaxes/numpy.tmLanguage.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "punctuation.definition.tag.end.docstring.python, docstring.variable.end.numpy.python"
1818
}
1919
},
20-
"match": "(?:^\\s*)()((?:\\*\\*|\\*|_*)?[a-z]\\w*)((?:\\s:\\s.*)?)(?:$)",
20+
"match": "(?:^\\s*)((?:-\\s*)?)((?:\\*\\*|\\*)?[a-zA-Z_]\\w*)((?:\\s:\\s.*)?)(?:$)",
2121
"name": "docstring.variable.numpy.python"
2222
},
2323
{

0 commit comments

Comments
 (0)