Issue #442 resolved

Fix for llvm identifiers

Erick Tryzelaar
created an issue

According to the [http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLLexer.cpp?revision=82784&view=markup llvm asm lexer], it's a little more liberal with identifiers than what pygments expects. Here's the relevent comments:

{{{ /// LexAt - Lex all tokens that start with an @ character: /// GlobalVar @\"[^\"]\" /// GlobalVar @[-a-zA-Z$._][-a-zA-Z$._0-9] /// GlobalVarID @[0-9]+

/// LexPercent - Lex all tokens that start with a % character: /// LocalVar ::= %\"[^\"]\" /// LocalVar ::= %[-a-zA-Z$._][-a-zA-Z$._0-9] /// LocalVarID ::= %[0-9]+

/// LexQuote - Lex all tokens that start with a " character: /// QuoteLabel "[^"]+": /// StringConstant "[^"]*"

/// LexIdentifier: Handle several related productions: /// Label [-a-zA-Z$._0-9]+: /// IntegerType i[0-9]+ /// Keyword sdiv, float, ... /// HexIntConstant [us]0x[0-9A-Fa-f]+ }}}

I've attached a patch that fixes this.

Comments (8)

  1. Log in to comment