.editorconfig
author Yuya Nishihara <yuya@tcha.org>
Wed, 12 Dec 2018 22:45:02 +0900
changeset 40952 4591c9791a82
parent 38293 1d6066336d7b
child 45411 c25efc468a49
permissions -rw-r--r--
templatefuncs: specialize "no match" value of search() to allow % operation If Python had Maybe or Option, the type of the search() result would be Option<Mapping>, which can be considered as a 0/1 container of a Mapping. So it makes sense that {search(r'no match pattern', x) % "whatever"} is mapped to an empty string.

# See http://EditorConfig.org for the specification

root = true

[*.py]
indent_size = 4
indent_style = space
trim_trailing_whitespace = true

[*.{c,h}]
indent_size = 8
indent_style = tab
trim_trailing_whitespace = true

[*.t]
indent_size = 2
indent_style = space
trim_trailing_whitespace = false