| 1 |
|
| 2 |
settings = { |
| 3 |
# [[direction ]type ]arg[...](,|EOL) |
| 4 |
# |
| 5 |
# Detailed expression: |
| 6 |
#function_args=(?: |
| 7 |
# matches () not to try to extract an argument for it |
| 8 |
# ^\([ \t]*\)$ |
| 9 |
# | |
| 10 |
# type or modifier (e.g. "char *", "string?[42]" or "List<string>") |
| 11 |
# (?:[a-zA-Z0-9_]+[ \t*?]*(?:(?:\\[|<)[a-zA-Z0-9_\[\]*?]*(?:\\]|>))?[ \t*?]+)* |
| 12 |
# the argument name itself (only capture) |
| 13 |
# ([a-zA-Z0-9_.]+) |
| 14 |
# prototype end (e.g. ")", end of (*arg)) |
| 15 |
# (?:[ \t]*\))? |
| 16 |
# possible white-spaces |
| 17 |
# [ \t]* |
| 18 |
# permissive match for post-arg (any shit we didn't thought about) |
| 19 |
# [^,]* |
| 20 |
# , or EOL |
| 21 |
# (?:,|$) |
| 22 |
# ) |
| 23 |
# note that \ are escaped, so to have a \ you need to put \\ |
| 24 |
match_function_arguments = "(?:^\\([ \t]*\\)$|(?:[a-zA-Z0-9_]+[ \t*?]*(?:(?:\\[|<)[a-zA-Z0-9_\\[\\]*?]*(?:\\]|>))?[ \t*?]+)*([a-zA-Z0-9_.]+)[ \t]*[^,]*(?:,|$))"; |
| 25 |
|
| 26 |
# global env |
| 27 |
global_environment = "write_since = 0;"; |
| 28 |
} |
| 29 |
|
| 30 |
doctypes = { |
| 31 |
valadoc = { |
| 32 |
enumval.policy = FORWARD; |
| 33 |
|
| 34 |
class.template = "/**\n * {cursor}\n{if write_since} * \n * @since \n{end} */\n"; |
| 35 |
field.template = "/**\n * {cursor}\n{if write_since} * \n * @since \n{end} */\n"; |
| 36 |
method.template = "/**\n * {cursor}\n * \n{for arg in argument_list} * @param {arg} {cursor}\n{end}{if returns} * @return {cursor}\n{end}{if write_since} * \n * @since {cursor}\n{end} */\n"; |
| 37 |
enum.template = "/**\n * {cursor}\n * \n{for enumval in enumval_list} * @param {enumval} {cursor}\n{end}{if write_since} * \n * @since {cursor}\n{end} */\n"; |
| 38 |
} |
| 39 |
} |
| 40 |
|