equal
deleted
inserted
replaced
161 } |
161 } |
162 |
162 |
163 def quote_name(keywords: Keyword.Keywords, name: String): String = |
163 def quote_name(keywords: Keyword.Keywords, name: String): String = |
164 if (read_name(keywords, name).isDefined) name |
164 if (read_name(keywords, name).isDefined) name |
165 else quote(name.replace("\"", "\\\"")) |
165 else quote(name.replace("\"", "\\\"")) |
|
166 |
|
167 |
|
168 /* plain antiquotation (0 or 1 args) */ |
|
169 |
|
170 def read_antiq_arg(keywords: Keyword.Keywords, inp: CharSequence): Option[(String, Option[String])] = |
|
171 explode(keywords, inp).filter(_.is_proper) match { |
|
172 case List(t) if t.is_name => Some(t.content, None) |
|
173 case List(t1, t2) if t1.is_name && t2.is_embedded => Some(t1.content, Some(t2.content)) |
|
174 case _ => None |
|
175 } |
166 |
176 |
167 |
177 |
168 /* implode */ |
178 /* implode */ |
169 |
179 |
170 def implode(toks: List[Token]): String = |
180 def implode(toks: List[Token]): String = |