summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2020-02-17 12:35:00 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2020-02-17 12:35:00 +0100
commitcf02feb9babf8a7b6765fb0d975da1f199bdee11 (patch)
tree8ce5e8816ddfd4f337eabd06b2f85f58cebdf8e4
parenta4311f73ee956653182c5bd5f047d5043e5bd894 (diff)
mono: Add "out" as a reserved word
This will turn it into kw_out just like it is done for "in". Otherwise it cannot be used as a parameter name, for example.
-rw-r--r--src/bin/eolian_mono/eolian/mono/name_helpers.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/name_helpers.hh b/src/bin/eolian_mono/eolian/mono/name_helpers.hh
index 1294bf01ed..bc3f278c91 100644
--- a/src/bin/eolian_mono/eolian/mono/name_helpers.hh
+++ b/src/bin/eolian_mono/eolian/mono/name_helpers.hh
@@ -71,6 +71,7 @@ inline std::string escape_keyword(std::string const& name)
71 || is_equal(name, "lock") 71 || is_equal(name, "lock")
72 || is_equal(name, "event") 72 || is_equal(name, "event")
73 || is_equal(name, "in") 73 || is_equal(name, "in")
74 || is_equal(name, "out")
74 || is_equal(name, "object") 75 || is_equal(name, "object")
75 || is_equal(name, "interface") 76 || is_equal(name, "interface")
76 || is_equal(name, "string") 77 || is_equal(name, "string")