зеркало из https://github.com/mozilla/gecko-dev.git
Bug 675627: Fix unrecognized directive error in nsIURIRefObject.idl and make this error fatal in the future. r=bsmedberg
This commit is contained in:
Родитель
8b23d8f061
Коммит
b5c51d1c84
|
@ -35,9 +35,6 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#ifndef nsIURIRefObject_h__
|
||||
#define nsIURIRefObject_h__
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "domstubs.idl"
|
||||
|
||||
|
@ -76,6 +73,3 @@ interface nsIURIRefObject : nsISupports
|
|||
void RewriteAllURIs(in DOMString aOldPat, in DOMString aNewPat,
|
||||
in boolean aMakeRel);
|
||||
};
|
||||
|
||||
#endif /* nsIURIRefObject_h__ */
|
||||
|
||||
|
|
|
@ -994,10 +994,9 @@ class IDLParser(object):
|
|||
|
||||
def t_directive(self, t):
|
||||
r'\#(?P<directive>[a-zA-Z]+)[^\n]+'
|
||||
print >>sys.stderr, IDLError("Unrecognized directive %s" % t.lexer.lexmatch.group('directive'),
|
||||
Location(lexer=self.lexer,
|
||||
lineno=self.lexer.lineno,
|
||||
lexpos=self.lexer.lexpos))
|
||||
raise IDLError("Unrecognized directive %s" % t.lexer.lexmatch.group('directive'),
|
||||
Location(lexer=self.lexer, lineno=self.lexer.lineno,
|
||||
lexpos=self.lexer.lexpos))
|
||||
|
||||
def t_newline(self, t):
|
||||
r'\n+'
|
||||
|
|
Загрузка…
Ссылка в новой задаче