1.3.16 • Published 3 years ago

bc-vscode-words v1.3.16

Weekly downloads
242
License
BSD-3-Clause
Repository
github
Last release
3 years ago

Blockception Vscode Words

Npm Package & Publish Npm Test tagged-release

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

3 years ago

1.3.14

4 years ago

1.3.15

3 years ago

1.3.13

4 years ago

1.3.12

4 years ago

1.3.11

4 years ago

1.3.10

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago