Skip to content

Commit

Permalink
Assign syntax to .Dockerfile
Browse files Browse the repository at this point in the history
This commit adds a hidden file extension to assign syntax to `.Dockerfile` files.
  • Loading branch information
deathaxe authored and princemaple committed Jun 24, 2023
1 parent 5d04e13 commit 0f6b7bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Syntaxes/Dockerfile.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Dockerfile
scope: source.dockerfile

file_extensions:
- Dockerfile
- dockerfile

hidden_file_extensions:
- .Dockerfile

first_line_match: ^\s*(?i:(from(?!\s+\S+\s+import)|arg))\s+
scope: source.dockerfile

variables:
onbuild_directive: (?i:(onbuild)\s+)?
Expand Down

0 comments on commit 0f6b7bc

Please sign in to comment.