ruki 3 éve
szülő
commit
5f4bc42dd4
2 módosított fájl, 18 hozzáadás és 0 törlés
  1. 9 0
      guide/syntax_description.md
  2. 9 0
      zh-cn/guide/syntax_description.md

+ 9 - 0
guide/syntax_description.md

@@ -529,5 +529,14 @@ Simplified to:
 target("demo", {kind = "binary", files = "src/*.c"})
 ```
 
+or
+
+```lua
+target("demo", {
+    kind = "binary",
+    files = "src/*.c"
+})
+```
+
 Of course, if the configuration requirements are more complicated, or the original multi-line setting method is more convenient, this depends on your own needs to evaluate which method is used.
 

+ 9 - 0
zh-cn/guide/syntax_description.md

@@ -529,5 +529,14 @@ target("demo")
 target("demo", {kind = "binary", files = "src/*.c"})
 ```
 
+或者
+
+```lua
+target("demo", {
+    kind = "binary",
+    files = "src/*.c"
+})
+```
+
 当然,如果配置需求比较复杂的,还是原有的多行设置方式更加方便,这个就看自己的需求来评估到底使用哪种方式了。