Skip to content
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 ABAP language #1259

Closed
wants to merge 9 commits into from
Closed

Conversation

cassioiks
Copy link

Adding initial language definition for SAP ABAP.
Markup test not supplied.

@Psidium
Copy link

Psidium commented Aug 11, 2016

Any updates on this pull request? Any help needed?

@isagalaev
Copy link
Member

It's waiting its turn. There's only so much we can do with whatever time available :-)

@cassioiks
Copy link
Author

Hi @isagalaev,

Is there something we can do to speed up the merge of this PR?

Thank you

@larshp
Copy link
Member

larshp commented Apr 23, 2017

@cassioiks I have updated your code, see larshp@e1b8756 so the unit test does not fail, can you update your branch with the code?

@cassioiks
Copy link
Author

@larshp Thanks, I just updated the code.

@jaulz
Copy link

jaulz commented Jul 7, 2017

Any idea if this will be merged at some point? Would be great 👍

@cassioiks
Copy link
Author

@jaulz I agree... it's almost 1 year and still nothing. @isagalaev Is there anything we can do?

@hismayilov
Copy link

any update?

@neooblaster
Copy link

Hi all.

I'm also interessed for ABAP highlight

Is the request approved ?

Thanks,
Best Regards
Nicolas DUPRE

@cassioiks
Copy link
Author

@isagalaev any news? anything we can do?

@neooblaster
Copy link

Hi All,

I integrated files abap.js (with little change) + abap.css + index declaration for markdown-pdf and that work perfectly.
Why merge is blocked ?

Best Regards.

Copy link

@neooblaster neooblaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi hljs team,

I'm interessed by the Highligh of ABAP language. I would like to propose a comment as review to help for merging this PR.

I followed the build instructions : node tools/build.js -n abap using PR file.

The build made successfully.

The tools/developer.html works perfectly with autodetection and with specified language :

image

image

To finish, the demonstration page correctly integrate in highlight.js demo page :

image

I think, I can help to maintain if necessary (Missing keyword).

Best regards,
Nicolas DUPRE

@marcoscaceres
Copy link
Contributor

We are starting to move languages outside the main repository into their own repository (but still part of the hljs org). That will avoid problems of things not getting merged in a timely manner- but it means authors will be responsible for publishing and maintaining their own languages. Would folks here be interested in taking part in that?

@larshp
Copy link
Member

larshp commented Oct 15, 2018

yes 🙋‍♂️

if you create the highlightjs-abap repo, then I'm sure someone(perhaps @cassioiks) will open the PR for it 😄

guess https://github.com/highlightjs/highlightjs-cshtml-razor can be used as reference? any thoughts on having the languages in a npm scope/namespaces? eg @highlightjs/abap

@neooblaster
Copy link

I think it's a good idea. It should be more easier to maintain and contribute for people like me.
This PR is not critical for me because I directly altered the highligh lib in my node_module dependencies folder to include ABAP files (which work perfectly).

How must we do to request a new repository conventionnaly named "highlightjs-abap" to work on it ?

The documentation will be update in that way I suppose ?

Thank for your replies and availability.

Nicolas DUPRE

@cassioiks
Copy link
Author

@marcoscaceres As long as it means we can finally get ABAP language in highlight.js, I'm in.
Can you give some instructions how/where to create this separate repository and how to finally merge into hljs?

Thanks a ton

@joshgoebel
Copy link
Member

joshgoebel commented Dec 24, 2019

First of all, truly sorry for the long delay in response.

As long as it means we can finally get ABAP language in highlight.js, I'm in.
Can you give some instructions how/where to create this separate repository and how to finally merge into hljs?

@cassioiks I'd be happy to create a repository for you in the highlightjs organization (or you can create one where-ever you want) - and we can link to it from our README. Unfortunately, we currently are no longer merging new languages into the core repository. The existing maintainers simply don't have time to maintain new languages (fixing bugs, dealing with issues, etc).

Having a separate repository is the alternative to merging, not in addition to.

But you can still make it super easy for users of highlight.js to use your language as a 3rd party module (or CDN package). It's easy to turn your language into a module that anyone who likes can easily integrate with Highlight.js using a single line of code:

<script src="/path/to/highlight.min.js"></script>
<!-- they'd simply add your language modules -->
<script src="/path/to/highlightjs-abap.js"></script> 
<script>hljs.initHighlightingOnLoad();</script>

It's also possible for users to rebuild the highlight.js library to include specific 3rd party modules, all in a single file (vs loading a bunch of 3rd party languages one at a time).

If you'd like to become the maintainer for this language then we're happy to create a new repository in the highlightjs organization and host the repository there. That assumes you'd be open to reviewing issues and fixing bugs as they arise. You're also welcome to host the repo yourself and we'll link to it from our README.

There isn't much in the way of how to docs on this yet, but there are sample repositories and it's honestly pretty easy. We're still fleshing out an official "spec" for 3rd party modules, but even after that's done it should require minimal changes from the examples we have already. IE, if you wanted to get started now there isn't any big reason to wait.

My own robots.txt grammar repository is a great, simple example:

https://github.com/highlightjs/highlightjs-robots-txt

If you have any questions feel free to ask.

@larshp
Copy link
Member

larshp commented Dec 24, 2019

✋ I'd like to help maintaining the ABAP highlighting for highlight.js

Its easiest to find if its a repo in the highlightjs organization. Any thoughts on publishing to npm, do you also have an organization there?

@joshgoebel
Copy link
Member

Its easiest to find if its a repo in the highlightjs organization. Any thoughts on publishing to npm, do you also have an organization there?

No. Or, actually I'm not sure. I just published robots-txt under my own account. I'm not sure what the permissions are like for organizations on npm, do you know? Is it easy to have a bunch of different siloed permissions for people within an organization (like it is here on GitHub)? Perhaps it's finally time we took a look at GitHub packages? I wonder if they would "just work" since we already have the repository permissions and stuff setup.

But I have no idea how easy it is to use npm with git package or if they are mutually exclusive things.

@marcoscaceres Any thoughts on this?

@joshgoebel
Copy link
Member

joshgoebel commented Dec 24, 2019

https://github.com/highlightjs/highlightjs-sap-abap

Sent you both invites. I think it's ok if we name the grammar 'abap` but I went with the clearer more context filled name for the repo itself.

Or perhaps we should start using longer names and use aliases better?

So sap-abap is the grammar name with abap as an alias? That sounds better to me.

@joshgoebel
Copy link
Member

@larshp I almost just forked it from robots-txt but I didn't know if that would be useful or a detriment.

@joshgoebel
Copy link
Member

joshgoebel commented Dec 24, 2019

@larshp I just realized we also have #1996. :-|

Could you all take a look at each others work and see if it's obvious we have a clear winner (one has a lot more functionality, etc) or if it'd be best to carefully merge them both together?

@larshp
Copy link
Member

larshp commented Dec 24, 2019

thanks, I'm on it, suggest closing both pull requests in favor of highlightjs/highlightjs-sap-abap#1

npm: I'm not sure, but personally I'd prefer everything on npm instead of on npm and GitHub package repos

@joshgoebel
Copy link
Member

After we have some code in the new repo I will close.

@joshgoebel joshgoebel closed this Dec 24, 2019
@cassioiks
Copy link
Author

Thanks for the info @yyyc514. I was beginning to lose hope after 3 years, but I guess it's a Christmas miracle :)

I'll happily maintain the repo with you, @larshp

Merry Christmas to all

@larshp
Copy link
Member

larshp commented Dec 25, 2019

@cassioiks I already added some code in https://github.com/highlightjs/highlightjs-sap-abap, and published to https://www.npmjs.com/package/highlightjs-sap-abap

do you have a user on npm? then I'll add you so you can also publish

@boghyon
Copy link

boghyon commented Jan 15, 2021

If anyone is interested in the highlight support for ABAP on Stack Exchange sites, please vote also for https://meta.stackoverflow.com/q/402607/5846045.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet