LyXLex::Pimpl::Pimpl(keyword_item * tab, int num)
: is(&fb__), table(tab), no_items(num),
- status(0), lineno(0)
+ status(0), lineno(0), commentChar('#')
{
verifyTable();
}
lineno = 0;
}
+void LyXLex::Pimpl::setCommentChar(char c)
+{
+ commentChar = c;
+}
+
bool LyXLex::Pimpl::next(bool esc /* = false */)
{
while (is && !status) {
is.get(cc);
c = cc;
- if (c == '#') {
+ if (c == commentChar) {
// Read rest of line (fast :-)
// That is not fast... (Lgb)
#if 1
continue;
}
- if (c == '#') {
+ if (c == commentChar) {
// Read rest of line (fast :-)
// That is still not fast... (Lgb)
#if 1