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 762990 - [PATCH] Added string style to bibtex language spec and some keywords
[PATCH] Added string style to bibtex language spec and some keywords
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-02 14:05 UTC by info
Modified: 2017-06-16 09:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch file (1.54 KB, patch)
2016-03-02 14:05 UTC, info
none Details | Review
Screenshot of patch (158.89 KB, image/png)
2016-03-02 14:07 UTC, info
  Details
Patch sorting keywords and added sub context to strings (3.81 KB, patch)
2016-04-04 09:51 UTC, info
none Details | Review
Screenshot of patch (166.28 KB, image/png)
2016-04-04 09:52 UTC, info
  Details
Sort keyword (3.17 KB, patch)
2017-06-13 14:02 UTC, info
committed Details | Review
Add missing keywords (1.55 KB, patch)
2017-06-13 14:02 UTC, info
committed Details | Review
Add string context (1.46 KB, patch)
2017-06-13 14:03 UTC, info
committed Details | Review

Description info 2016-03-02 14:05:58 UTC
Created attachment 322862 [details] [review]
Patch file

This patch adds a string style to bibtex language spec.
Comment 1 info 2016-03-02 14:07:03 UTC
Created attachment 322863 [details]
Screenshot of patch
Comment 2 Sébastien Wilmet 2016-03-27 05:29:13 UTC
Review of attachment 322862 [details] [review]:

Thanks for your patch.

Can you:
- create a separate patch to add the keywords.
- sort the keywords in alphabetical order.

For the string, what if a \{ or \} is present inside the "string"? (I suppose escaping the { or } with a backslash is the way to insert it inside the value).
You should create another context to highlight \{ and \} differently, like it is done for e.g. \n in a C string. And reference that context inside the string context.
Comment 3 info 2016-04-04 09:51:45 UTC
Created attachment 325314 [details] [review]
Patch sorting keywords and added sub context to strings
Comment 4 info 2016-04-04 09:52:22 UTC
Created attachment 325315 [details]
Screenshot of patch
Comment 5 info 2016-04-04 09:53:01 UTC
I added a new patch and a new screenshot according to Sébastien's comment.
Comment 6 Sébastien Wilmet 2016-04-10 15:42:00 UTC
Comment on attachment 325314 [details] [review]
Patch sorting keywords and added sub context to strings

- the patches must be created with the 'git format-patch' command.
- create several patches: a first one to sort the current keywords, a second one to add missing keywords, and a third one to add the string style.
Comment 7 info 2017-06-13 14:02:26 UTC
Created attachment 353687 [details] [review]
Sort keyword
Comment 8 info 2017-06-13 14:02:48 UTC
Created attachment 353688 [details] [review]
Add missing keywords
Comment 9 info 2017-06-13 14:03:09 UTC
Created attachment 353689 [details] [review]
Add string context
Comment 10 Sébastien Wilmet 2017-06-16 09:22:44 UTC
Review of attachment 353687 [details] [review]:

++
Comment 11 Sébastien Wilmet 2017-06-16 09:23:03 UTC
Review of attachment 353688 [details] [review]:

++
Comment 12 Sébastien Wilmet 2017-06-16 09:24:11 UTC
Review of attachment 353689 [details] [review]:

Looks good, thanks.
Comment 13 Sébastien Wilmet 2017-06-16 09:31:36 UTC
Pushed on master:
commit 8babd51d45718c7274e5751dd491fb683c36193a
commit 72ab978da094f27902b8ef8649fb0bb2a553cd30
commit b36d20bb1deef4e241acaf21f66d638e78fe7ef5

And cherry-picked on gnome-3-24.