【发布时间】:2017-05-14 12:22:36
【问题描述】:
我正在编写一个脚本来自动管理我的 makefile。我需要一个与以下行匹配的 Lua 模式:
# objects {
objects = build/somefile1.o \
build/somefile2.o \
...
build/somefileN.o \
# } objects
我尝试使用%# objects %{[a-z%.%s%/%\\]+%# %} objects,但它似乎不起作用。
【问题讨论】:
-
# objects {.-\n# } objects
标签: makefile lua pattern-matching lua-patterns