Repository navigation
editors: units and Persian digits highlight as one number in components and pages, tree-sitter repeat track lists, LSP in pub component - #3685
Conversation
…ent values, corpus for component bodies
…uild, site.js and the chat fallback
…بخش bodies, tests for component bodies
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
sha=a0933b00a06863170b5294cf6462da2dcaf4e438
🤖 Salam AI reviewVerdict: 🛠️ Changes needed before merging commit SummaryThis PR improves editor and highlighter handling so CSS-like units and percent values (including Persian digits/forms such as ۱fr and ۵۰٪) are tokenized as single numbers in component bodies as well as pages, teaches tree-sitter to parse What changed
Review
Tests
Risks
|
Checked every editor surface with the same probe inside page: and inside a component body (en and fa). The regex grammars (TextMate, kate, sublime, gtksourceview, vim, emacs, nano), the LSP semantic tokens and the context free web highlighters already treated both alike. What was actually wrong, now fixed:
Tests: extensions/tools/check_engines.salam now compares a component probe with the page probe (probe_component_en and fa) and flags a dimension, percent or colour that is no longer one token; website/check-highlight.mjs runs from website/build.sh when node exists; component_attrs in tools/lsp/test_lsp.salam. check_engines passes for all four engines including vscode-textmate. The new LSP completion tests were not confirmed: the 0.6.16 server already fails the existing style completion tests and a compiler build from this tree was killed by memory pressure, they should be run with a main built compiler.