From c83f39e4a9f9f7529cb064f2252c3dbb6a1f2752 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 2 Nov 2014 15:33:10 +0400 Subject: [PATCH] update tests for ruby mode --- lib/ace/mode/_test/tokens_html_ruby.json | 20 +++++++++++++++----- lib/ace/mode/_test/tokens_ruby.json | 4 +++- lib/ace/mode/_test/tokens_sh.json | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/lib/ace/mode/_test/tokens_html_ruby.json b/lib/ace/mode/_test/tokens_html_ruby.json index 2c74ba56..8ff5f6ea 100644 --- a/lib/ace/mode/_test/tokens_html_ruby.json +++ b/lib/ace/mode/_test/tokens_html_ruby.json @@ -144,7 +144,9 @@ ["text"," "], ["support.function","link_to"], ["text"," "], - ["string","'Show'"], + ["string.start","'"], + ["string","Show"], + ["string.end","'"], ["text",", "], ["identifier","book"], ["text"," "], @@ -162,7 +164,9 @@ ["text"," "], ["support.function","link_to"], ["text"," "], - ["string","'Edit'"], + ["string.start","'"], + ["string","Edit"], + ["string.end","'"], ["text",", "], ["identifier","edit_book_path"], ["paren.lparen","("], @@ -183,7 +187,9 @@ ["text"," "], ["support.function","link_to"], ["text"," "], - ["string","'Remove'"], + ["string.start","'"], + ["string","Remove"], + ["string.end","'"], ["text",", "], ["identifier","book"], ["text",", "], @@ -191,7 +197,9 @@ ["text"," "], ["punctuation.separator.key-value","=>"], ["text"," "], - ["string","'Are you sure?'"], + ["string.start","'"], + ["string","Are you sure?"], + ["string.end","'"], ["text",", "], ["constant.other.symbol.ruby",":method"], ["text"," "], @@ -239,7 +247,9 @@ ["text"," "], ["support.function","link_to"], ["text"," "], - ["string","'New book'"], + ["string.start","'"], + ["string","New book"], + ["string.end","'"], ["text",", "], ["identifier","new_book_path"], ["text"," "], diff --git a/lib/ace/mode/_test/tokens_ruby.json b/lib/ace/mode/_test/tokens_ruby.json index 19b98b70..1809f5ee 100644 --- a/lib/ace/mode/_test/tokens_ruby.json +++ b/lib/ace/mode/_test/tokens_ruby.json @@ -145,7 +145,9 @@ ["text"," "], ["punctuation.separator.key-value","=>"], ["text"," "], - ["string","\"value\""], + ["string.start","\""], + ["string","value"], + ["string.end","\""], ["paren.rparen","}"] ],[ "start" diff --git a/lib/ace/mode/_test/tokens_sh.json b/lib/ace/mode/_test/tokens_sh.json index 53411906..f2c6b276 100644 --- a/lib/ace/mode/_test/tokens_sh.json +++ b/lib/ace/mode/_test/tokens_sh.json @@ -331,4 +331,4 @@ ["keyword","fi"] ],[ "start" -]] +]] \ No newline at end of file