2021-04-10 10:39:22 -04:00
|
|
|
==============================
|
|
|
|
A Tree-sitter parser for CMake
|
|
|
|
==============================
|
2021-05-28 16:51:24 -04:00
|
|
|
|
2021-07-02 04:09:58 -04:00
|
|
|
This project provides a `cmake` parser. Its primary use case is to provide a `cmake` parser for `nvim-treesitter`.
|
2021-05-28 16:51:24 -04:00
|
|
|
|
2021-07-02 04:09:58 -04:00
|
|
|
|
|
|
|
Parsed syntax
|
|
|
|
=============
|
|
|
|
|
|
|
|
- Command
|
|
|
|
|
|
|
|
- General commands
|
|
|
|
- For and while loops
|
|
|
|
- If conditions
|
|
|
|
- Functions and macros
|
|
|
|
|
|
|
|
- Arguments
|
|
|
|
|
|
|
|
- Quoted arguments
|
|
|
|
- Bracket arguments
|
|
|
|
- Unquoted arguments
|
|
|
|
- Parentheses
|
|
|
|
|
|
|
|
- Variable refences
|
|
|
|
|
|
|
|
- Environment and cache variables
|
|
|
|
- Normal variables
|
|
|
|
|
|
|
|
- Generator expression
|
2022-07-08 01:16:35 -04:00
|
|
|
|