Skip to content

Commit 00cd0b7

Browse files
committed
.gersemirc - search src for definitions
To fix errors when parsing custom macro from `src\examples\CMakeLists.txt`, see BlankSpruce/gersemi#105
1 parent aa7710d commit 00cd0b7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.gersemirc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/0.24.0/gersemi/configuration.schema.json
22

3-
# Needed for gersemi to detect custom functions and macros.
4-
definitions: ["./cmake"]
3+
# Gersemi doesn't support autodetection of macros/functions from other files or from the current one
4+
# and requires to explicitly list directories/cmake files that define them.
5+
definitions: ["./cmake", "./src"]
56
disable_formatting: false
67
extensions: []
78
indent: 4

0 commit comments

Comments
 (0)