Skip to content

Commit 3c4022e

Browse files
committed
Update the code description document
1 parent 32d9189 commit 3c4022e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

code-description.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The code is written in TypeScript. This file describes how the code works.
1919
- [Tag object properties](#tag-object-properties)
2020
- [Per-tag explanation](#per-tag-explanation)
2121
- [Regular expression](#regular-expression)
22+
- [The package.json file](#the-packagejson-file)
2223
<br/>
2324

2425
## Terminology
@@ -486,7 +487,7 @@ When we find an `ifversion` tag we:
486487

487488
When we find an `elsif` tag:
488489
- If `cursorIsAfterTagStart` is true we:
489-
- Assign `tagCounter` to `currentTagSpan[nestingLevel]`.
490+
- Assign `tagCounter` to `currentTagSpan[nestingLevel]`.
490491
- Assign the version to `versionDescription[nestingLevel]`, prepending "AND " if we're in a nested tag set.
491492
- Set `elsedVersions[nestingLevel]` to `elsedVersions[nestingLevel] + " \nAND NOT " + match[2]` (e.g. "NOT ghes \nAND NOT ghec").
492493

@@ -496,7 +497,7 @@ Note that we don't assign a value to `tagSetID[nestingLevel]` because this tag d
496497

497498
When we find an `else` tag:
498499
- If `cursorIsAfterTagStart` is true we:
499-
- Assign `tagCounter` to `currentTagSpan[nestingLevel]`.
500+
- Assign `tagCounter` to `currentTagSpan[nestingLevel]`.
500501
- Assign the `elsedVersions[nestingLevel]` to `versionDescription[nestingLevel]`, prepending "AND " if we're in a nested tag set.
501502

502503
#### `endif`

0 commit comments

Comments
 (0)