You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -323,9 +324,8 @@ Code within `{= =}` delimiters gets full syntax highlighting:
323
324
-**Rust**: Ownership keywords, macros, lifetimes
324
325
325
326
### Comments
326
-
- Line comments: `//` and `#`
327
+
- Line comments: `//`
327
328
- Block comments: `/* */`
328
-
- TODO/FIXME highlighting
329
329
330
330
## 📖 Documentation
331
331
@@ -346,9 +346,11 @@ Topics include:
346
346
## 🤝 Contributing
347
347
348
348
Contributions welcome! This plugin combines:
349
-
-Syntax grammar from [VSCode Lingua Franca extension](https://github.com/lf-lang/vscode-lingua-franca)
349
+
-Tree-sitter grammar auto-generated from the official [Lingua Franca Xtext grammar](https://github.com/lf-lang/lingua-franca) via `xtext2ts`
350
350
- LSP server from [Lingua Franca compiler](https://github.com/lf-lang/lingua-franca)
351
351
352
+
A weekly GitHub Action checks for upstream grammar changes, regenerates the tree-sitter grammar, validates against all upstream test files, and opens a PR automatically.
353
+
352
354
### Reporting Issues
353
355
354
356
If you encounter:
@@ -371,6 +373,12 @@ Please open an issue with:
371
373
git clone https://github.com/remifan/lf.nvim.git
372
374
cd lf.nvim
373
375
376
+
# Regenerate tree-sitter grammar from upstream Xtext
377
+
python -m xtext2ts \
378
+
--xtext /path/to/LinguaFranca.xtext \
379
+
--output tree-sitter-lf/grammar.js
380
+
cd tree-sitter-lf && tree-sitter generate
381
+
374
382
# Test locally (syntax only)
375
383
nvim -u NONE -c "set rtp+=." test.lf
376
384
@@ -419,6 +427,6 @@ MIT License - see [LICENSE](LICENSE) file for details.
419
427
420
428
## 🙏 Acknowledgments
421
429
422
-
-Syntax grammar based on the official [VSCode Lingua Franca extension](https://github.com/lf-lang/vscode-lingua-franca)
430
+
-Tree-sitter grammar generated from the official [Lingua Franca Xtext grammar](https://github.com/lf-lang/lingua-franca)
423
431
- LSP server from the [Lingua Franca compiler project](https://github.com/lf-lang/lingua-franca)
424
432
- Built for the [Lingua Franca](https://www.lf-lang.org/) community
0 commit comments