-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile highlighting #56
base: master
Are you sure you want to change the base?
Conversation
3888dc8
to
d6bc835
Compare
Language/Dockerfile.php
Outdated
]; | ||
|
||
$this->rules->add('keyword', new Rule( | ||
new RegexMatcher('/^\s*\b(' . implode('|', $keywords) . ')\b/mi'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if that \b
is required since it must be first word of a line? The same goes for the last one - it should probably be \s
as I don't think that syntax like RUN["test"]
is a valid one? Not sure however.
Language/Dockerfile.php
Outdated
{ | ||
return [ | ||
'name' => ['dockerfile'], | ||
'extension' => ['Dockerfile'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use also other common formats like *.Dockerfile
, *-Dockerfile
, Dockerfile-*
.
Tests/LanguagesTest.php
Outdated
private $_languageOverrides = [ | ||
'*.Dockerfile' => 'dockerfile', | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only ensures me that it should be simply in extensions
metadata because it just feels hacky.
d6bc835
to
e47f902
Compare
e47f902
to
9fc94ef
Compare
Remaining:
As for 0.10.0, I propose to merge this PR to master (eventually), then to branch off with
0.9.x
and then we can continue 0.10.x development on master.I can even take care of porting changes back and forth, if that ever becomes a necessity because I feel like 0.9.x would be getting just bugfixes and/or new languages, not the bigger changes anyways.