[editor] Add all template functions to highlighter

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-10-23 02:30:14 +02:00
parent 2dc0250800
commit 00f88e17ce
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
2 changed files with 4 additions and 6 deletions

View file

@ -11,9 +11,10 @@
* [templating] Add `jsonAPI` template function
* Improvements
* [core] Move storage to database (#30, #32)
* [core] Move storage to database (#30, #32)
* [core] Allow to pass ID to channel modification
* ⚠ [templating] Add sprig functions, replace some built-ins
* [editor] Add all template functions to highlighter
* [templating] Add sprig functions, replace some built-ins ⚠
* Bugfixes

View file

@ -63,12 +63,9 @@ func (t *templateFuncProvider) GetFuncMap(m *irc.Message, r *plugins.Rule, field
}
func (t *templateFuncProvider) GetFuncNames() []string {
t.lock.RLock()
defer t.lock.RUnlock()
var out []string
for n := range t.funcs {
for n := range t.GetFuncMap(nil, nil, nil) {
out = append(out, n)
}