Skip to content

Commit a4837a7

Browse files
committed
feat: Lexer, tokenize
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent db04218 commit a4837a7

File tree

94 files changed

+3902
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+3902
-52
lines changed

.codecov.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,7 @@ ignore:
8989
- '!src/index.ts'
9090

9191
profiling:
92-
critical_files_paths: []
92+
critical_files_paths:
93+
- src/constructs/eof.ts
94+
- src/constructs/initialize.ts
95+
- src/lexer.ts

.commitlintrc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { scopes } from '@flex-development/commitlint-config'
1818
const config: UserConfig = {
1919
extends: ['@flex-development'],
2020
rules: {
21-
'scope-enum': [Severity.Error, 'always', scopes(['chore'])]
21+
'scope-enum': [Severity.Error, 'always', scopes(['chore', 'constructs'])]
2222
}
2323
}
2424

.dictionary.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ mkbuild
2121
mlly
2222
nocheck
2323
nvmrc
24+
onreturn
2425
pathe
2526
pkgs
2627
preid
2728
shfmt
29+
succ
30+
tokenizes
2831
unstub
2932
vates
3033
vfile

.dprint.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"command": "node ./dprint/shfmt.mjs {{file_path}}",
38-
"exts": ["sh", "txt", "zsh"],
38+
"exts": ["sh", "zsh"],
3939
"fileNames": [
4040
".editorconfig",
4141
".env",

.github/infrastructure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ branches:
4141
- context: test (20)
4242
- context: typescript (5.3.3)
4343
- context: typescript (5.4.5)
44-
- context: typescript (5.5.0-beta)
44+
- context: typescript (5.5.2)
4545
- context: typescript (latest)
4646
strict: true
4747
restrictions: null

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ jobs:
331331
- id: test
332332
if: steps.test-files-check.outputs.files_exists == 'true'
333333
name: Run tests
334-
run: yarn test:cov --segfault-retry=3
334+
run: yarn test:cov
335335
- id: codecov
336336
name: Upload coverage report to Codecov
337337
if: steps.test-files-check.outputs.files_exists == 'true'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![github release](https://img.shields.io/github/v/release/flex-development/vfile-lexer.svg?include_prereleases&sort=semver)](https://github.com/flex-development/vfile-lexer/releases/latest)
44
[![npm](https://img.shields.io/npm/v/@flex-development/vfile-lexer.svg)](https://npmjs.com/package/@flex-development/vfile-lexer)
5-
[![codecov](https://codecov.io/gh/flex-development/vfile-lexer/graph/badge.svg?token=)](https://codecov.io/gh/flex-development/vfile-lexer)
5+
[![codecov](https://codecov.io/gh/flex-development/vfile-lexer/graph/badge.svg?token=iA1BvaucoZ)](https://codecov.io/gh/flex-development/vfile-lexer)
66
[![module type: esm](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
77
[![license](https://img.shields.io/github/license/flex-development/vfile-lexer.svg)](LICENSE.md)
88
[![conventional commits](https://img.shields.io/badge/-conventional%20commits-fe5196?logo=conventional-commits&logoColor=ffffff)](https://conventionalcommits.org/)

__fixtures__/hello.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const 你好 = "hello 👋";
2+
console.log(\u4f60\u597d); // hello 👋

__fixtures__/inline-tag.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{@linkcode Code}

__fixtures__/numerics.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
0
2+
0n
3+
1
4+
1n
5+
2
6+
2n
7+
3
8+
3n
9+
4
10+
4n
11+
5
12+
5n
13+
6
14+
6n
15+
7
16+
7n
17+
8
18+
8n
19+
9
20+
9n

0 commit comments

Comments
 (0)