Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The lexer breaks on some specific inline html #1

Open
jorissteyn opened this issue Sep 4, 2015 · 0 comments
Open

The lexer breaks on some specific inline html #1

jorissteyn opened this issue Sep 4, 2015 · 0 comments

Comments

@jorissteyn
Copy link
Owner

See test case and description in lexer.el:

;; This test case is a simplified version of Zend_Gdata_Docs, for some
;; reason the lexer chokes on the html contents. The combination of
;; the first #header, together with the dot in 2.4em triggers the
;; error.
;;
;; Tips for debugging this:
;;  * put breakpoints in semantic-php-wy.el
;;  * or add debug statements to lexical analyzers in semantic-php.wy
;;  * inspect the end position of emitted inline_html tokens
;;  * perhaps the order of the analyzers in semantic-php-wy-lexer is wrong
(ert-deftest semantic-php-test-lexer-parse-inline-html()
  "Test parser wont explode on inline html"
  :expected-result :failed
  (with-test-buffer
   "function startHTML() {
?>
        #header h1 {
        }

        #header p {
            line-height: 2.4em;
        }

<?php } ?>"
   (with-semantic-tags
    (should (equal 1 (length tags))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant