diff options
-rw-r--r-- | ide/coq.lang | 2 | ||||
-rw-r--r-- | ide/coq_lex.mll | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ide/coq.lang b/ide/coq.lang index daac4c181..e202e36b9 100644 --- a/ide/coq.lang +++ b/ide/coq.lang @@ -37,7 +37,7 @@ <define-regex id="decl_head">((?'gal'(Program\%{space}+)?(\%{single_decl}|\%{begin_proof}))\%{space}+(?'id'\%{ident}))|((?'gal4list'\%{mult_decl})(?'id_list'(\%{space}+\%{ident})+))</define-regex> <context id="escape-seq" style-ref="escape"> - <match>\\(\\|"|'|n|t|b|r)</match> + <match>""</match> </context> <context id="string" style-ref="string"> <start>"</start> diff --git a/ide/coq_lex.mll b/ide/coq_lex.mll index e20e44e22..2f3763880 100644 --- a/ide/coq_lex.mll +++ b/ide/coq_lex.mll @@ -18,8 +18,7 @@ let undotted_sep = [ '{' '}' '-' '+' '*' ] let dot_sep = '.' (space | eof) rule coq_string = parse - | "\\\"" { coq_string lexbuf } - | "\\\\" { coq_string lexbuf } + | "\"\"" { coq_string lexbuf } | "\"" { () } | eof { () } | _ { coq_string lexbuf } |