D7280: Add syntax highlighting for Metamath

Aaron Puchert noreply at phabricator.kde.org
Sat Aug 12 21:46:34 UTC 2017


aaronpuchert created this revision.
Restricted Application added a project: Frameworks.

REVISION SUMMARY
  Metamath is a formal language to express mathematical theorems and
  proofs developed by Norman Megill. [1, 2]
  
  The language is defined in the documentation [3, Chapter 4]. The syntax
  highlighter is a bit lenient sometimes. When encountering symbols, we
  highlight them as variables, because only semantic analysis could tell
  if they are symbols instead.
  
  The test is a modified version of the file demo0.mm in [4], where I
  removed most of the comments.
  
  I'm not sure if we should set a priority, because apparently Objective-
  C++ files have the same extension. Right now it is a toss-up between the
  two languages.
  
  [1] http://us.metamath.org/
  [2] https://en.wikipedia.org/wiki/Metamath
  [3] http://us.metamath.org/downloads/metamath.pdf
  [4] http://us.metamath.org/downloads/metamath.tar.bz2

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  metamath

REVISION DETAIL
  https://phabricator.kde.org/D7280

AFFECTED FILES
  autotests/folding/test.mm.fold
  autotests/html/test.mm.html
  autotests/input/test.mm
  autotests/input/test.mm.syntax
  autotests/reference/test.mm.ref
  data/syntax/metamath.xml

To: aaronpuchert, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170812/94292598/attachment.html>


More information about the Kde-frameworks-devel mailing list