Skip to content

Commit

Permalink
Handle QML / QMake files (#40)
Browse files Browse the repository at this point in the history
* Add support for QML files

QML information:

- reference: https://doc.qt.io/qt-5/qmlreference.html
- comment syntax: https://doc.qt.io/qt-5/qtqml-syntax-basics.html#comments

* Add support for qmake project files

Comment syntax reference: https://doc.qt.io/qt-5/qmake-project-files.html#comments
  • Loading branch information
hannahwhy authored and aknysh committed Apr 27, 2018
1 parent 8e68aee commit 1f560d1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ javacript:
close: ' */\n\n'
prefix: ' * '

qml:
ext: ['.qml']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '

qmake_project:
ext: ['.pro']
comment:
open: '#\n'
close: '#\n'
prefix: '# '

css:
ext: ['.css']
comment:
Expand Down

0 comments on commit 1f560d1

Please sign in to comment.