D19438: Add syntax definition for Elm language to syntax-highlighting

Nibaldo González noreply at phabricator.kde.org
Tue Mar 12 09:58:14 GMT 2019


nibags added a comment.


  It isn't possible to compile, because the `elm.xml` file has multiple issues :(
  The script "data/schema/validatehl.sh" serves to verify the XML files:
  
    cd syntax-highlighting/data/schema/
    ./validatehl.sh ../syntax/elm.xml
  
  Output:
  
    ../syntax/elm.xml:3: element language: Schemas validity error : Element 'language', attribute 'version': '1.0' is not a valid value of the atomic type 'xs:integer'.
    ../syntax/elm.xml:43: element WordDetect: Schemas validity error : Element 'WordDetect', attribute 'string': The attribute 'string' is not allowed.
    ../syntax/elm.xml:43: element WordDetect: Schemas validity error : Element 'WordDetect': The attribute 'String' is required but missing.
    ../syntax/elm.xml:84: element StringDetect: Schemas validity error : Element 'StringDetect', attribute 'char': The attribute 'char' is not allowed.
    ../syntax/elm.xml:84: element StringDetect: Schemas validity error : Element 'StringDetect': The attribute 'String' is required but missing.
    ../syntax/elm.xml:86: element context: Schemas validity error : Element 'context': The attribute 'lineEndContext' is required but missing.
    ../syntax/elm.xml:93: element context: Schemas validity error : Element 'context': The attribute 'lineEndContext' is required but missing.
    ../syntax/elm.xml:102: element context: Schemas validity error : Element 'context': The attribute 'lineEndContext' is required but missing.
    ../syntax/elm.xml:114: element itemDatas: Schemas validity error : Element 'itemDatas': This element is not expected. Expected is ( context ).
    ../syntax/elm.xml:4: element highlighting: Schemas validity error : Element 'highlighting': Missing child element(s). Expected is ( itemDatas ).
    ../syntax/elm.xml fails to validate
  
  For example: `</contexts>` (line 133) must be placed before `<itemDatas>` and `dsHexVal` isn't a valid default style (use `dsBaseN`, look here <https://docs.kde.org/stable5/en/applications/katepart/highlight.html#kate-highlight-default-styles>). By solving it, maybe compile everything well.
  
  Also, I'm not sure if Elm should be in the "Sources" or "Script" section (maybe not so relevant).
  To compile, try installing: libkf5syntaxhighlighting-dev qtbase5-dev libqt5xmlpatterns5-dev perl (although installing the first installs the rest)

REPOSITORY
  R216 Syntax Highlighting

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

To: bonghyunkim
Cc: nibags, dhaumann, kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, ngraham, bruns, demsking, cullmann, sars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190312/9d8eded9/attachment.html>


More information about the Kde-frameworks-devel mailing list