aboutsummaryrefslogtreecommitdiff
path: root/odb/pragma.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-01 14:51:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-01 14:51:06 +0200
commit1df3835ada62bd3c6d091469d4596589735abd18 (patch)
treec2103621564e260d72b2dd001003684aa7252c37 /odb/pragma.cxx
parent7871bd9b681f449cc3938750ce70fa1ed5400dcd (diff)
Fix bug in view column parsing
Diffstat (limited to 'odb/pragma.cxx')
-rw-r--r--odb/pragma.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/odb/pragma.cxx b/odb/pragma.cxx
index 585da42..e6ebbf5 100644
--- a/odb/pragma.cxx
+++ b/odb/pragma.cxx
@@ -990,12 +990,6 @@ handle_pragma (cpp_reader* reader,
{
char c (str[i]);
- if (!(isalnum (c) || c == '_'))
- {
- tc.expr = true;
- break;
- }
-
if (c == '.')
{
if (p != string::npos)
@@ -1007,6 +1001,11 @@ handle_pragma (cpp_reader* reader,
p = i;
}
+ else if (!(isalnum (c) || c == '_'))
+ {
+ tc.expr = true;
+ break;
+ }
}
if (!tc.expr && p != string::npos)