* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 25 Apr 2013 16:07:33 +0000 (12:07 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 25 Apr 2013 16:07:33 +0000 (12:07 -0400)
commit1693b06af53b8f81b100147e91582be7d450640f
treee212e24763983d89d4e6b16af5b6d58df1a306d4
parentbe64c05d81d6191397fa96e050b8b3ad8134b62b
* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
(opascal-mode-syntax-table): New var.
(opascal-literal-kind, opascal-is-literal-end)
(opascal-literal-token-at): Rewrite.
(opascal--literal-start-re, opascal-font-lock-keywords)
(opascal--syntax-propertize): New constants.
(opascal-font-lock-defaults): Adjust.
(opascal-mode): Use them.  Set comment-<foo> variables as well.
(delphi-comment-face, opascal-comment-face, delphi-string-face)
(opascal-string-face, delphi-keyword-face, opascal-keyword-face)
(delphi-other-face, opascal-other-face): Remove face variables.
(opascal-save-state): Remove macro.
(opascal-fontifying-progress-step): Remove constant.
(opascal--ignore-changes): Remove var.
(opascal-set-token-property, opascal-parse-next-literal)
(opascal-is-stable-literal, opascal-complete-literal)
(opascal-is-literal-start, opascal-face-of)
(opascal-parse-region, opascal-parse-region-until-stable)
(opascal-fontify-region, opascal-after-change)
(opascal-debug-show-is-stable, opascal-debug-unparse-buffer)
(opascal-debug-parse-region, opascal-debug-parse-window)
(opascal-debug-parse-buffer, opascal-debug-fontify-window)
(opascal-debug-fontify-buffer): Remove.
(opascal-debug-mode-map): Adjust accordingly.
lisp/ChangeLog
lisp/progmodes/opascal.el