# Initial ArkTS plan English · [简体中文](plan.md) Sublime Text 4 should highlight `.ets` files on open and provide common snippets, comment shortcuts, indentation, and native folding. The package uses a standalone `.sublime-syntax` file and requires no SDK, Node.js, or third-party syntax package. It covers common HarmonyOS ArkTS and ArkUI syntax. Full parsing, semantic completion, diagnostics, building, and debugging are outside the initial scope. 1. Define syntax rules for comments, strings, interpolation, numbers, keywords, types, decorators, structs, functions, component calls, and nested brackets. Verify scopes and highlighting recovery in Sublime Text. 2. Configure two-space indentation, comment shortcuts, brackets, and symbol indexing. Use Sublime Text's native indentation-based folding. 3. Add snippets for pages, components, state, builders, `ForEach`, and common layouts. Limit expansion to ArkTS code. 4. Add a sample, an automated check, and installation instructions. Build an installable `.sublime-package`. Acceptance covers nested ArkUI components, chained calls, V1 and V2 decorators, comments with Chinese text, and template interpolation. Keywords inside strings and comments should keep their enclosing scopes. Snippet XML must be valid, and syntax engine checks must pass. Record any checks that could not run. ## Initial results (2026-11-06) - [x] Standalone syntax and a comprehensive sample. - [x] Two-space indentation, comment settings, and verified native folding. - [x] Eleven common snippets. - [x] Installation instructions, validation and packaging scripts, and an installable package. - [x] All 33 initial engine checks passed in Sublime Text 4 build 4200. [Recorded results](../tests/last-engine-result.json) Manual review of color schemes and keyboard behavior remained open. Testing had yet to cover macOS, Linux, or other Sublime Text builds. ## Release preparation (2026-11-06) - [x] Recognize methods in type declarations for Ctrl+R navigation. Use separate scopes for type references to keep them out of the symbol list. - [x] Highlight common regex literals, character classes, and escapes. Verify that ordinary division retains its operator scope. - [x] Add examples of nested generics, multiline methods, and interface signatures. All 41 engine checks at this stage passed. - [x] Adopt MIT and add the license, version file, changelog, and release guide. Include license and version information in the package. - [ ] The remaining work at this stage was to confirm the public repository, capture screenshots, run manual checks, and submit to Package Control.