1.3.16 • Published 2 years ago
bc-vscode-words v1.3.16
Blockception Vscode Words
The lexical analyzers basics used for analyzing code from VSCode documents
Examples
//Offset words contain only the offset of the word in the text
function Process(doc: TextDocument) {
let Words = RangedWord.Parse(doc, /([^ \t\r\n]+)+/gi);
foreach(var W in Words) {
if (W.text === "hello") {
let offset = W.offset;
let pos = doc.positionAt(offset);
}
}
}
//Ranged words contain the start (the character and line) and end of a word
function Process(doc: TextDocument) {
let Words = RangedWord.Parse(doc, /([^ \t\r\n]+)+/gi);
foreach(var W in Words) {
if (W.text === "hello") {
let range = W.range;
}
}
}
//Location words contain the start (the character and line) and end of a word and the uri
function Process(doc: TextDocument) {
let Words = LocationWord.ParseFromRegexDoc(doc, /([^ \t\r\n]+)+/gi);
foreach(var W in Words) {
if (W.text === "hello") {
let range = W.location.range;
let uri = W.location.uri
}
}
}
Contributing
First, read the contributing guide. fork the project, clone it and run the following commands:
Installation
npm ci
npm update
1.3.16
2 years ago
1.3.14
2 years ago
1.3.15
2 years ago
1.3.13
2 years ago
1.3.12
3 years ago
1.3.11
3 years ago
1.3.10
3 years ago
1.3.9
3 years ago
1.3.8
3 years ago
1.3.7
3 years ago
1.3.6
3 years ago
1.3.5
3 years ago
1.3.4
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago