| 533 | } |
| 534 | |
| 535 | void LexState::SetLexerModule(const LexerModule *lex) { |
| 536 | if (lex != lexCurrent) { |
| 537 | if (instance) { |
| 538 | instance->Release(); |
| 539 | instance = 0; |
| 540 | } |
| 541 | interfaceVersion = lvOriginal; |
| 542 | lexCurrent = lex; |
| 543 | if (lexCurrent) { |
| 544 | instance = lexCurrent->Create(); |
| 545 | interfaceVersion = instance->Version(); |
| 546 | } |
| 547 | pdoc->LexerChanged(); |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | void LexState::SetLexer(uptr_t wParam) { |
| 552 | lexLanguage = wParam; |
nothing calls this directly
no test coverage detected