Skip to content

How to obtain dhall.sublime-syntax from dhall.tmLanguage #1

Closed
@kukimik

Description

@kukimik

Hello! Sorry for bothering you in what looks like a rather private repo. However, I'd be grateful for some help.

I believe that you obtained the Dhall/dhall.sublime-syntax file from the .tmLanguage file provided by the VSCode plugin https://github.com/dhall-lang/vscode-language-dhall. (That's because your .sublime-syntax file has the same bug, see dhall-lang/vscode-language-dhall#11). Did you do it in an automated way? I tried the approach described in the README, but "Plugin Development: Convert Syntax to .sublime-syntax" fails with the following error (in Sublime Text build 4143):

Traceback (most recent call last):
  File "/opt/sublime_text/Lib/python38/sublime_plugin.py", line 1659, in run_
    return self.run()
  File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 433, in run
  File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 358, in convert
  File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 328, in make_context
Exception: unknown pattern type: dict_keys(['name', 'patterns'])

I'm interested in creating a package for Sublime Text with Dhall syntax highlighting. I want to base it on https://github.com/dhall-lang/vscode-language-dhall, but it would be nice to have a .sublime-syntax file along with the .tmLanguage file (although the .tmLanguage file itself seems to work and probably is sufficient), and it would be nice if it could be obtained in an automated way.

Disclaimer: there is a $200 bounty set for restoring Dhall syntax highlighting in Sublime after https://github.com/SQbQxeKd3JHD8/SublimeDhall disappeared. If you are interested, go ahead and grab it! I'm interested more in restoring the syntax highlighting than in the bounty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions