Skip to content

Commit 8678d1b

Browse files
authored
Update code-description.md
1 parent 4f23062 commit 8678d1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code-description.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ Now the contents of `versioningString` will be: `ghec or ghes > 3.8 \nAND NOT gh
304304

305305
The following variables and constants are used in the script. Except where marked, these are variables.
306306

307+
- **beforeCursor**: Boolean. This is set to true initially. We set it to false as soon as we get to the cursor position during the parsing phase. This allows us to quickly skip any more checking for the cursor position or assigning values related to the versioning message.
307308
- **currentTagSetID**: a number. This short-lived variable is just used to store the tag set ID of the tag we're currently processing when working out which tags to highlight.
308309
- **currentTagSpan[nestingLevel]**: an array of numbers. The numbers identify the tag span (and possibly ancestor tag spans) in which the cursor is located. The last element in this array contains the ID of the tag span within which the cursor is directly located. Initially this array is empty, meaning the cursor is not within a tag span. Knowing the current tag span (and any ancestor spans), we can use the tag properties to find out which tag set(s) to highlight.
309310
- **cursorPosition**: (constant) a vscode.Position (i.e. a line number and the number of character on that line where the cursor currently sits).

0 commit comments

Comments
 (0)