After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672309 - LLVM Syntax Highlighting
LLVM Syntax Highlighting
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-17 21:02 UTC by Stefan
Modified: 2014-02-06 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
LLVM Syntax Highlighting (9.24 KB, text/plain)
2012-03-17 21:02 UTC, Stefan
  Details
git format-patch (13.28 KB, patch)
2012-03-21 19:54 UTC, Stefan
none Details | Review

Description Stefan 2012-03-17 21:02:06 UTC
Hello.

I have created a syntax highlighting file for LLVM (llvm.org). I went through the language specification and I think I added everything.

I hope you will add it to the trunk. Otherwise I hope people finding this bug will be helped. Installation instructions are in the file.

Regards, Stefan Sundin
Comment 1 Stefan 2012-03-17 21:02:40 UTC
Created attachment 210014 [details]
LLVM Syntax Highlighting
Comment 2 Paolo Borelli 2012-03-19 22:24:20 UTC
Forgive my ignorance, but which part of llvm is the lang file highlighting? As far as I know llvm is a compiler... which files would this work with?

From a formal point of view the lang file looks mostly good, some minor nitpicks:
 - use two-spaced indent instead of tabs
 - we include mimetype only if they are part of shared-mime-info, otherwise we omit them (that metadata is not mandatory)
Comment 3 Stefan 2012-03-19 22:41:04 UTC
LLVM is a collection of many tools related to compilers. Perhaps the main point of LLVM is an intermediate representation the rest of the tools are centered around. It's like assembler, but not machine specific. You can then run optimizations on the intermediate representation before compiling it into assembler or a final executable.

You can compile ordinary C programs to LLVM IR by using clang: clang -cc1 -emit-llvm foo.c

Then you can further compile foo.ll into an executable with this: llc foo.ll

Feel free to fix the minor issues that you listed, or if you want I will do it. And I don't think that mimetype is in shared-mime-info.
Comment 4 Paolo Borelli 2012-03-19 22:48:57 UTC
Ah ok, so this is for LLVM intermediate representation.

If you could update the file as suggested it would be great. Even better if also add it to Makefile.am, po/POTFILES.in, include a small test snippet in tests/testfiles.sh and provide the whole thing in as in the "git format-patch" format so that it can be included preserving your name etc.

No hurry though we are frozen for 3.4 so this will have to wait a bit
Comment 5 Paolo Borelli 2012-03-19 22:49:46 UTC
Ah, also to be included the file must be licensed as LGPL v2 as the other lang files.
Comment 6 Stefan 2012-03-21 19:54:50 UTC
Created attachment 210279 [details] [review]
git format-patch

All issues should be fixed in this one.
Comment 7 Sébastien Wilmet 2014-02-06 14:52:31 UTC
The commit is pushed, thanks for your patch.

https://git.gnome.org/browse/gtksourceview/commit/?id=b10d067620880e010d7111f35c6568422642c2ad