diff options
author | PHO <pho@cielonegro.org> | 2016-01-25 12:51:35 +0900 |
---|---|---|
committer | PHO <pho@cielonegro.org> | 2016-01-25 12:51:35 +0900 |
commit | 5354cee4445619cd75b7c202585858073651d840 (patch) | |
tree | 5170cbdbf276d372b54ad8348115345517810a9c /tests/examplefiles/test.erl | |
parent | e2617210227fd5e93638294fb1a2f0cc22acfb7f (diff) | |
download | pygments-5354cee4445619cd75b7c202585858073651d840.tar.gz |
Erlang lexer: Support map expressions introduced in Erlang/OTP 17
Diffstat (limited to 'tests/examplefiles/test.erl')
-rw-r--r-- | tests/examplefiles/test.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/examplefiles/test.erl b/tests/examplefiles/test.erl index bcf9a0b7..d4ab4825 100644 --- a/tests/examplefiles/test.erl +++ b/tests/examplefiles/test.erl @@ -152,6 +152,10 @@ a_binary() -> a_list_comprehension() -> [X*2 || X <- [1,2,3]]. +a_map() -> + M0 = #{ a => 1, b => 2 }, + M1 = M0#{ b := 200 }. + escape_sequences() -> [ "\b\d\e\f\n\r\s\t\v\'\"\\" , "\1\12\123" % octal |