matches
This commit is contained in:
parent
98e1d1f939
commit
49f87fd992
1 changed files with 5 additions and 2 deletions
|
@ -123,9 +123,9 @@ re["alias"] = RE_BEGIN "#=" RE_SPACES RE_VAR RE_END
|
|||
re["binary"] = RE_BEGIN "#\\|" RE_SPACES RE_VAR RE_END
|
||||
RE_CLOSE = RE_BEGIN "}" RE_SPACES RE_END
|
||||
re["command"] = RE_BEGIN "#/" RE_SPACES RE_VAR RE_END
|
||||
RE_COMMENT = RE_BEGIN RE_SPACES "# " RE_ANY RE_END
|
||||
RE_COMMENT = RE_BEGIN RE_SPACES "#" RE_ANY RE_END
|
||||
re["constant"] = RE_BEGIN RE_CONST RE_SET RE_END
|
||||
RE_DOC = RE_BEGIN "# " RE_ANY RE_END
|
||||
RE_DOC = RE_BEGIN RE_SPACES "# " RE_ANY RE_END
|
||||
re["function"] = RE_BEGIN RE_VAR RE_FUNC RE_END
|
||||
RE_MODULE = RE_BEGIN "#\\." RE_SPACES RE_ANY RE_END
|
||||
RE_SHEBANG = RE_BEGIN "#!" RE_SPACES RE_ANY RE_END
|
||||
|
@ -198,14 +198,17 @@ function parse(string) {
|
|||
|
||||
# doc
|
||||
} else if (match(string, RE_DOC)) {
|
||||
current_match = "doc"
|
||||
doc_append(strip_first(string, "# "))
|
||||
|
||||
# comment
|
||||
} else if (match(string, RE_COMMENT)) {
|
||||
current_match = "comment"
|
||||
doc_append(string)
|
||||
|
||||
# other
|
||||
} else {
|
||||
current_match = ""
|
||||
if (target) {
|
||||
if (module == target) {
|
||||
doc_output(target, "module")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue