8000 Fix Erlang and Elixir highlight mappings by rnowak · Pull Request #7044 · go-gitea/gitea · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Erlang and Elixir highlight mappings #7044

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

Merged
merged 3 commits into from
May 30, 2019
Merged

Fix Erlang and Elixir highlight mappings #7044

merged 3 commits into from
May 30, 2019

Conversation

rnowak
Copy link
Contributor
@rnowak rnowak commented May 25, 2019

Hi,

Without these changes, the highlighting language determination for both Erlang (.erl, .escript) and Elixir (.ex, .exs) files is left up to a dice roll -- sometimes it is typescript, some other times actionscript. Exciting.

I do not believe ".erlang" and ".elixir" to be extensions used wildly in the wild.

I realize this replaces a single entry with two for each of the languages, and .escript is not even that common and could be left out.

Thanks.

@lafriks
Copy link
Member
lafriks commented May 25, 2019

Please reformat (make fmt)

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 25, 2019
@rnowak
Copy link
Contributor Author
rnowak commented May 25, 2019

Done. A friend also made me aware that hightlight.js has an "erl" alias for erlang, so that one could be moved up to the upper mapping. The three other are less lucky. Would you prefer that?

8000

@codecov-io
Copy link
codecov-io commented May 25, 2019

Codecov Report

Merging #7044 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7044      +/-   ##
==========================================
- Coverage   41.72%   41.72%   -0.01%     
==========================================
  Files         443      443              
  Lines       60149    60149              
==========================================
- Hits        25099    25097       -2     
- Misses      31774    31776       +2     
  Partials     3276     3276
Impacted Files Coverage Δ
modules/highlight/highlight.go 31.81% <ø> (ø) ⬆️
routers/repo/view.go 42.02% <0%> (-1.02%) ⬇️
models/repo_list.go 73.09% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d12ec2...acbb458. Read the comment docs.

@lunny lunny added the topic/ui Change the appearance of the Gitea UI label May 26, 2019
@lafriks
Copy link
Member
lafriks commented May 27, 2019

Yes please move erl up if it works with our used version

@lafriks lafriks added this to the 1.9.0 milestone May 27, 2019
@rnowak
Copy link
Contributor Author
rnowak commented May 28, 2019

Moved ".erl" up to be in the same place as ".erlang" was before. Not sure what the ordering is.

Tested with the shipped highlight.js - works as expected.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 28, 2019
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 30, 2019
@techknowlogick techknowlogick merged commit 592924a into go-gitea:master May 30, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0