equal
deleted
inserted
replaced
134 else if (ML_Lex.keywords3(token.source)) JEditToken.KEYWORD3 |
134 else if (ML_Lex.keywords3(token.source)) JEditToken.KEYWORD3 |
135 else JEditToken.KEYWORD1 |
135 else JEditToken.KEYWORD1 |
136 |
136 |
137 |
137 |
138 /* markup elements */ |
138 /* markup elements */ |
|
139 |
|
140 private val indentation_elements = |
|
141 Markup.Elements(Markup.Command_Indent.name) |
139 |
142 |
140 private val semantic_completion_elements = |
143 private val semantic_completion_elements = |
141 Markup.Elements(Markup.COMPLETION, Markup.NO_COMPLETION) |
144 Markup.Elements(Markup.COMPLETION, Markup.NO_COMPLETION) |
142 |
145 |
143 private val language_context_elements = |
146 private val language_context_elements = |
291 |
294 |
292 val markdown_item_color1 = color_value("markdown_item_color1") |
295 val markdown_item_color1 = color_value("markdown_item_color1") |
293 val markdown_item_color2 = color_value("markdown_item_color2") |
296 val markdown_item_color2 = color_value("markdown_item_color2") |
294 val markdown_item_color3 = color_value("markdown_item_color3") |
297 val markdown_item_color3 = color_value("markdown_item_color3") |
295 val markdown_item_color4 = color_value("markdown_item_color4") |
298 val markdown_item_color4 = color_value("markdown_item_color4") |
|
299 |
|
300 |
|
301 /* indentation */ |
|
302 |
|
303 def indentation(range: Text.Range): Int = |
|
304 snapshot.select(range, Rendering.indentation_elements, _ => |
|
305 { |
|
306 case Text.Info(_, XML.Elem(Markup.Command_Indent(i), _)) => Some(i) |
|
307 case _ => None |
|
308 }).headOption.map(_.info).getOrElse(0) |
296 |
309 |
297 |
310 |
298 /* completion */ |
311 /* completion */ |
299 |
312 |
300 def semantic_completion(completed_range: Option[Text.Range], range: Text.Range) |
313 def semantic_completion(completed_range: Option[Text.Range], range: Text.Range) |