Skip to content

Commit

Permalink
elm: Give renamed imports a more descriptive name
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterjug committed Jan 5, 2017
1 parent c9cc975 commit 2f721d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optlib/elm.c
Expand Up @@ -29,7 +29,7 @@ extern parserDefinition* ElmParser (void)
{"^(port[[:blank:]]+)?module[[:blank:]]+([[:upper:]][[:alnum:]_.]*)", "\\2",
"m,module,Module", "{scope=push}{exclusive}"},
{"^import[[:blank:]]+[[:alnum:]_.]+[[:blank:]]+as[[:blank:]]+([[:alnum:]]+)", "\\1",
"x,unknown,Unknown objects", "{scope=clear}{exclusive}"},
"x,rename,Renamed Import", "{scope=clear}{exclusive}"},
{"^import[[:blank:]]+([[:alnum:]_.]+)[[:blank:]]exposing", "",
"", "{scope=clear}{exclusive}"},
{"^import[[:blank:]]+([[:alnum:]_.]+)", "",
Expand Down
2 changes: 1 addition & 1 deletion optlib/elm.ctags
Expand Up @@ -20,7 +20,7 @@
--langdef=elm
--map-elm=+.elm
--regex-elm=/^(port[[:blank:]]+)?module[[:blank:]]+([[:upper:]][[:alnum:]_.]*)/\2/m,module,Module/{scope=push}{exclusive}
--regex-elm=/^import[[:blank:]]+[[:alnum:]_.]+[[:blank:]]+as[[:blank:]]+([[:alnum:]]+)/\1/x,unknown,Unknown objects/{scope=clear}{exclusive}
--regex-elm=/^import[[:blank:]]+[[:alnum:]_.]+[[:blank:]]+as[[:blank:]]+([[:alnum:]]+)/\1/x,rename,Renamed Import/{scope=clear}{exclusive}
#
# Following two patterns are just for clearing scope stack.
# X in "import X" should be captured as a reference tag in the future.
Expand Down

0 comments on commit 2f721d1

Please sign in to comment.