~vcs-imports-ii/src-highlite/master

« back to all changes in this revision

Viewing changes to src/ada.lang

  • Committer: Tom Tromey
  • Date: 2019-06-02 16:47:50 UTC
  • Revision ID: git-v1:106c84cbb777c215749b689ba4ab7510854614ad
Handle Ada attributes correctly

I noticed that Ada attributes are not handled correctly; they are
treated like strings.  This patch changes character literals to be
more precise -- and correct, because I don't believe Ada actually has
escape syntax.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
include "number.lang"
30
30
 
31
31
string delim "\"" "\"" escape "\\"
32
 
string delim "'" "'"  escape "\\"
 
32
string = '\'.\''
33
33
 
34
34
type = "Integer|Float|Duration|Character|String|Wide_String|Boolean" nonsensitive
35
35