downcase! directive to use with ruby injections

```
(#downcase! "language")
```

downcase! will ensure the metadata value for the specified key will be
downcased. If the value is a node, it will downcase the text specified
by the node.

```
(#downcase! @node "key")
```

You can also namespace the key with a specific capture, similar to how
you can call `(#set! @node "key" "value")`
This commit is contained in:
derekstride 2021-04-15 15:48:48 -02:30 committed by Thomas Vigouroux
parent ee2266993b
commit e98e2eafa2
2 changed files with 33 additions and 0 deletions

View file

@ -1 +1,7 @@
(comment) @comment
(heredoc_body
(heredoc_content) @content
(heredoc_end) @language
(#set! "language" @language)
(#downcase! "language"))