From 1a04dcf10f502798c7907cb1e1da37d5b8955eb8 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Mon, 21 Dec 2020 13:08:20 -0500 Subject: [PATCH] Add Lean.sublime-syntax. Covers syntax for Lean 3, an interactive theorem prover at https://leanprover-community.github.io/ whose users mostly use VSCode. --- assets/syntaxes/02_Extra/Lean.sublime-syntax | 125 +++++++++++++++++++ doc/assets.md | 1 + 2 files changed, 126 insertions(+) create mode 100644 assets/syntaxes/02_Extra/Lean.sublime-syntax diff --git a/assets/syntaxes/02_Extra/Lean.sublime-syntax b/assets/syntaxes/02_Extra/Lean.sublime-syntax new file mode 100644 index 00000000..55e47cdd --- /dev/null +++ b/assets/syntaxes/02_Extra/Lean.sublime-syntax @@ -0,0 +1,125 @@ +%YAML 1.2 +--- +# http://www.sublimetext.com/docs/3/syntax.html +name: Lean +file_extensions: + - lean +scope: source.lean +contexts: + main: + - include: comments + - match: '\b(?])' + pop: true + - include: comments + - include: definitionName + - match: "," + - match: \b(Prop|Type|Sort)\b + scope: storage.type.lean + - match: '\battribute\b\s*\[[^\]]*\]' + scope: storage.modifier.lean + - match: '@\[[^\]]*\]' + scope: storage.modifier.lean + - match: \b(?