Issue #1360 new

analyse_text seems to be borked in 1.6?

masklinn
created an issue

I've been trying analyse_text on various lexers as guess didn't seem to work right, and it seems multiple lexers give incorrect result, testing correctly lexed snippets from the demos:

Entry 3586446 (doscon)

>>> lexer.analyse_text('c:\Windows\Temp> for /F %%A in ("pics.txt") do If %%~zA equ 0 del pics.txt')
0.0

Entry 6345744 (less)

#! python
>>> lexer.analyse_text("""
.block {
  margin: 10px 5px;
  padding: 2px;
}

p {
  .block; /* Inherit styles from '.block' */
  border: 1px solid #EEE;
}
ul, ol {
  .block; /* Inherit styles from '.block' */
  color: #333;
  text-transform: uppercase;
}
""")
0.0

Comments (1)

  1. Log in to comment