Describes indentation rules for a language.
Describes indentation rules for a language.
(decrease-indent-pattern indentation-rule)
If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
Returns: RegExp
If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches). **Returns:** `RegExp`
(increase-indent-pattern indentation-rule)
If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).
Returns: RegExp
If a line matches this pattern, then all the lines after it should be indented once (until another rule matches). **Returns:** `RegExp`
(indent-next-line-pattern indentation-rule)
If a line matches this pattern, then only the next line after it should be indented once.
Returns: RegExp | undefined
If a line matches this pattern, then **only the next line** after it should be indented once. **Returns:** `RegExp | undefined`
(set-decrease-indent-pattern! indentation-rule value)
If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
(set-increase-indent-pattern! indentation-rule value)
If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).
If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).
(set-indent-next-line-pattern! indentation-rule value)
If a line matches this pattern, then only the next line after it should be indented once.
If a line matches this pattern, then **only the next line** after it should be indented once.
(set-un-indented-line-pattern! indentation-rule value)
If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.
If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.
(un-indented-line-pattern indentation-rule)
If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.
Returns: RegExp | undefined
If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules. **Returns:** `RegExp | undefined`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close