Skip to content

Commit 3a02825

Browse files
committed
lint: add add-property command to syntaxdb
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent d58e7fd commit 3a02825

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

share/nagelfar/plugin_modulefile.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##Nagelfar Plugin : modulefile-specific notices
22
#
33
# PLUGIN_MODULEFILE.tcl, Nagelfar plugin to lint modulefiles
4-
# Copyright (C) 2022-2023 Xavier Delaruelle
4+
# Copyright (C) 2022-2025 Xavier Delaruelle
55
#
66
# This program is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -32,7 +32,7 @@ proc statementWords {words info} {
3232
deprecated and not implemented"]
3333
}
3434
}
35-
extensions - add-property - remove-property {
35+
extensions - remove-property {
3636
set res [list warning "Command \"[lindex $words 0]\" is not\
3737
implemented"]
3838
}

share/nagelfar/syntaxdb_modulefile.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ModuleVariant
2525
}
2626

2727
lappend ::knownCommands {*}{
28+
add-property
2829
always-load
2930
append-path
3031
chdir
@@ -73,7 +74,6 @@ unsetenv
7374
variant
7475
versioncmp
7576
x-resource
76-
add-property
7777
extensions
7878
remove-property
7979
module-log
@@ -83,6 +83,7 @@ module-verbosity
8383
}
8484

8585
# syntax
86+
set ::syntax(add-property) 2
8687
set ::syntax(always-load) {o* x x*}
8788
set ::syntax(append-path) {o* x x x*}
8889
set ::syntax(chdir) 1
@@ -202,7 +203,6 @@ set ::syntax(variant) {o* x x*}
202203
set ::syntax(versioncmp) 2
203204
set ::syntax(x-resource) 1
204205
# not implemented commands
205-
set ::syntax(add-property) 2
206206
set ::syntax(remove-property) 2
207207
set ::syntax(extensions) {x x*}
208208
set {::syntax(module-info flags)} 0

0 commit comments

Comments
 (0)