diff --git a/autotests/folding/test.pbl.fold b/autotests/folding/test.pbl.fold --- a/autotests/folding/test.pbl.fold +++ b/autotests/folding/test.pbl.fold @@ -75,11 +75,11 @@ first_time_only = no [lua] code = << - function narrator(t) + function narrator(t) -- Behave like the [message] tag. wesnoth.fire("message", - { speaker = "narrator", message = t.sentence }) - end + { speaker = "narrator", message = t.sentence }) + end >> [/lua] [/event] diff --git a/autotests/html/test.pbl.html b/autotests/html/test.pbl.html --- a/autotests/html/test.pbl.html +++ b/autotests/html/test.pbl.html @@ -81,25 +81,25 @@ first_time_only = no [lua] code = << - function narrator(t) - -- Behave like the [message] tag. - wesnoth.fire("message", - { speaker = "narrator", message = t.sentence }) - end - >> + function narrator(t) + -- Behave like the [message] tag. + wesnoth.fire("message", + { speaker = "narrator", message = t.sentence }) + end + >> [/lua] [/event] [event] name = turn 1 [lua] - code = << narrator(...) >> + code = << narrator(...) >> [args] sentence = _ "Hello world!" [/args] [/lua] [lua] - code = << narrator(...) >> + code = << narrator(...) >> [args] sentence = _ "How are you today?" [/args] diff --git a/autotests/reference/test.pbl.ref b/autotests/reference/test.pbl.ref --- a/autotests/reference/test.pbl.ref +++ b/autotests/reference/test.pbl.ref @@ -75,25 +75,25 @@ first_time_only = no
[lua]
code = <<
- function narrator(t)
- -- Behave like the [message] tag.
- wesnoth.fire("message",
- { speaker = "narrator", message = t.sentence })
- end
- >>
+ function narrator(t)
+ -- Behave like the [message] tag.
+ wesnoth.fire("message",
+ { speaker = "narrator", message = t.sentence })
+ end
+ >>
[/lua]
[/event]

[event]
name = turn 1
[lua]
- code = << narrator(...) >>
+ code = << narrator(...) >>
[args]
sentence = _ "Hello world!"
[/args]
[/lua]
[lua]
- code = << narrator(...) >>
+ code = << narrator(...) >>
[args]
sentence = _ "How are you today?"
[/args]
diff --git a/data/syntax/wml.xml b/data/syntax/wml.xml --- a/data/syntax/wml.xml +++ b/data/syntax/wml.xml @@ -10,6 +10,7 @@ * Fix infinite loop between the "section" & "error" contexts. * Only highlight tags with valid name format. * Don't highlight array indices as tags. + * Use new default styles & fix embedded Lua code. * 0.42 - 2011-11-15 : * Added preprocessor directives: #error, #warning @@ -59,7 +60,7 @@ * Made the new #ifndef directive be recognized (implemented on Wesnoth 1.3.11 and later) --> - @@ -123,14 +124,14 @@ - + - + - + - + @@ -196,8 +197,8 @@ - - + +