Myriad-Dreamin
5bf177637a
fix: stop hash expressions before "operators" ( #1756 )
...
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Blocked by required conditions
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2019) (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
* fix: distinguish markup math and code math
* fix: stop hash expressions before "operators"
* fix: corner cases
2025-05-13 18:06:19 +08:00
Myriad-Dreamin
470386dabb
feat: handle minus and asterisk marker confidently ( #1134 )
...
* feat: handle minus and asterisk marker confidently
* test: add some tests about assign
2025-01-09 14:27:39 +08:00
Myriad-Dreamin
903a2fe41b
feat: generate wider look-behind pattern for pcre-compatible grammar ( #1130 )
2025-01-08 11:33:16 +08:00
Myriad-Dreamin
13e7325b7b
feat: parse arrow functions like binary expr ( #1128 )
2025-01-08 11:24:55 +08:00
Myriad-Dreamin
691a28ef55
feat: conditionally satisfy PCRE regex features ( #1126 )
2025-01-07 20:49:38 +08:00
Myriad-Dreamin
d4d8345166
fix: match special identifiers in calls ( #1125 )
2025-01-07 14:20:00 +08:00
Myriad-Dreamin
a6a6d88143
fix: exclude content block syntax when parsing math arguments ( #1124 )
2025-01-07 14:18:11 +08:00
Myriad-Dreamin
42bfb8de1c
feat: add more termination rules about FIRST tokens ( #1122 )
...
* feat: terminate call arguments before some FIRST tokens
* feat: terminate braces before some FIRST tokens
* feat: terminate set clause on some FIRST tokens
* feat: refine rules to terminate a math call
2025-01-07 14:15:31 +08:00
Myriad-Dreamin
03ac73bd52
feat: change some names of textmate scopes ( #1119 )
...
* feat: change some special kind of string tokens
* feat: change some special kind of constant tokens
* feat: change some special kind of keyword tokens
* test: update snapshot
2025-01-07 14:00:21 +08:00
Myriad-Dreamin
4a44a69196
feat: parse name identifier of parameters or arguments ( #1118 )
...
* test: add arg name tests
* feat: parse name identifier of parameters or arguments
2025-01-07 10:16:23 +08:00
Myriad-Dreamin
a00e5f12e5
fix: terminates math calls before identifier start ( #1117 )
2025-01-06 21:53:38 +08:00
Myriad-Dreamin
957e017966
fix: parse math calls with text braces inside or around ( #1112 )
...
* fix: parse math calls with text braces inside or around
* test: add some test cases
2025-01-05 21:21:34 +08:00
Myriad-Dreamin
671783a964
feat: enable experimental math syntax highlighting ( #1107 )
2025-01-04 05:41:57 +08:00
Myriad-Dreamin
8b495fe2ab
feat: recursively parse markup link according to typst syntax ( #911 )
2024-11-29 15:43:38 +08:00
Myriad-Dreamin
6fa07b6777
fix: stop show until new line or code terminator ( #910 )
2024-11-29 15:31:02 +08:00
Myriad-Dreamin
adef0381be
fix: continue parsing expression on func/method call ( #909 )
2024-11-29 15:30:51 +08:00
Myriad-Dreamin
5423976278
fix: stop import-as clause before colon ( #908 )
2024-11-29 15:17:00 +08:00
Myriad-Dreamin
e95e4284b1
fix: match brackets in content block recursively ( #856 )
...
* feat: only match brackets in content block
* test: update snapshot
2024-11-19 23:28:12 +08:00
Myriad-Dreamin
b1efa88161
feat: improve syntax highlighting ( #724 )
...
* dev: simplify if statement handling
* dev: parse blocks in if/for/while more consistently
* feat: improve context expression parsing
* feat: improve context expression parsing
* feat: improve parameter clause parsing
2024-10-22 21:41:20 +08:00
Myriad-Dreamin
24751130a5
feat: parse for clause correctly ( #642 )
...
* fix: unchanged snapshots
* feat: parse for clause correctly
2024-10-07 13:13:42 +08:00
Myriad-Dreamin
cfa04bdd1b
feat: improve numeric literal parsers ( #558 )
2024-08-26 10:55:34 +08:00
Myriad-Dreamin
a95b07de27
fix: nested colorization
2024-08-11 11:24:50 +08:00
Myriad-Dreamin
555da7e5a5
feat: identify more context for bracket colorization ( #522 )
2024-08-10 20:43:18 +08:00
Myriad-Dreamin
651d7f7148
build: bump version to 0.11.17 ( #469 )
...
* docs: update readme
* fix: disable syntax highlighting issue
* gg
* fix: fenced code
* build: bump version to 0.11.17
* fix: indented fenced code
2024-07-27 13:34:27 +08:00
Myriad-Dreamin
81a95816b6
feat: syntax highlighting for raw blocks (fence ticks <= 6) ( #450 )
...
* feat: syntax highlighting for raw blocks (fence ticks <= 6)
* dev: remove unused comments
2024-07-22 19:20:25 +08:00
Myriad-Dreamin
3393b998aa
fix: a dot or colon in ref ident cannot follow space or EOF ( #195 )
2024-04-18 11:33:22 +08:00
Myriad-Dreamin
987a7da867
feat: complete arguments enhanced by type inference ( #186 )
...
* auto complete code in param position
* dev: initial path completion in params
* fix: compile error
* remove two todo
* dev: improve get_deref_target
* check string during completion
* feat: complete path arguments
* feat: identify hash before function follows a content parameter
* dev: complete text.size, text.dir, stack.dir, stroke dict
* dev: add record type
* dev: complete stroke dict
* fix: correct kind of langauge of code tooltip
* dev: add colon trigger character
* dev: let type selection complete
* dev: complete inset/outset/margin/radius dictionary types
* dev: complete raw theme/syntaxes, bib path types
* dev: complete all files at the same time
* dev: update snapshot
2024-04-15 00:17:54 +08:00
Myriad-Dreamin
4b1057efaf
fix: better grammar on incomplete heading ( #187 )
2024-04-12 09:49:36 +08:00
Myriad-Dreamin
61851f1300
dev: correctly parse label and reference markup ( #167 )
2024-04-06 13:44:48 +08:00
Myriad-Dreamin
2e39afde78
fix: better grammar on incomplete AST ( #140 )
...
* dev: error tolerance on editing let/show statements
* dev: error tolerance on editing if/show statements
* dev: error tolerance on editing while/for statements
* dev: error tolerance on editing if/while/for statements
* dev: better token for and or not
2024-04-01 01:51:42 +08:00
Myriad-Dreamin
90ef2e6f72
dev: improve punctuation and keyword token kinds ( #133 )
...
* dev: improve punctuation and keyword token kinds
* dev: improve punctuation and keyword token kinds
2024-03-30 20:04:34 +08:00
Myriad-Dreamin
2e7c7732dc
feat: mark correct expression boundary on all testing files from typst/typst ( #85 )
...
* fix: comment and set rules
* fix: losen for rules
* fix: chore field, escape
* fix: hash termination
* dev: handle math mode
* fix: terminate expressions on right braces
* dev: match spread operator
* dev: remove complex check on if
* dev: add two bugs
* dev: fix if/while conditions
* fix: terminate expressions on right braces 2
2024-03-23 01:19:43 +08:00
Myriad-Dreamin
14ef2e78e2
feat: provide more robust syntax highlight for expressions in markup context ( #80 )
...
* dev: robust if syntax
* dev: robust for syntax
* dev: if/for with content blocks
* dev: robust while syntax
* dev: lift identifier matchers
* dev: update test case
* dev: robust call syntax
* dev: robust arrow func syntax
* dev: robust set syntax
* dev: robust show syntax
* dev: robust let syntax
* dev: robust string literal syntax
* dev: robust include syntax
* dev: robust import syntax
* dev: expression continuation
* dev: error tolerance
* dev: robust inline/blocky raw syntax
* dev: chore fixes
* dev: fix call and raw
* dev: fix some markup
* dev: refactor many markup patterns
* dev: final touches
* dev: remove unused dep
2024-03-21 17:52:51 +08:00
Myriad-Dreamin
a3948df5da
feat: init syntax library for function hover tip ( #77 )
...
* dev: introduce upstream tooltip
* feat: basic function definition
* feat: init syntax library
* abandon
* build: run syntax building
* fix: let expression
* fix: markup in code
* fix: raw code
2024-03-20 12:18:57 +08:00