Skip to content

Commit ed1386a

Browse files
Merge branch 'master' into master
2 parents ee918b1 + 738f983 commit ed1386a

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

DOCS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ For adding/changing TODO keyword colors see [org-todo-keyword-faces](#org_todo_k
10441044
* `OrgTSTag`: A tag for a headline item, shown on the righthand side like `:foo:`
10451045
* `OrgTSPlan`: `SCHEDULED`, `DEADLINE`, `CLOSED`, etc. keywords
10461046
* `OrgTSComment`: A comment block
1047+
* `OrgTSLatex`: LaTeX block
10471048
* `OrgTSDirective`: Blocks starting with `#+`
10481049
* `OrgTSCheckbox`: The default checkbox highlight, overridden if any of the below groups are specified
10491050
* `OrgTSCheckboxChecked`: A checkbox checked with either `[x]` or `[X]`

doc/orgmode.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ HIGHLIGHT GROUPS *orgmode-highlight_group
13871387
`OrgTSTag`: A tag for a headline item, shown on the righthand side like `:foo:`
13881388
`OrgTSPlan`: `SCHEDULED`, `DEADLINE`, `CLOSED`, etc. keywords
13891389
`OrgTSComment`: A comment block
1390+
`OrgTSLatex`: LaTeX block
13901391
`OrgTSDirective`: Blocks starting with `#+`
13911392
`OrgTSCheckbox`: The default checkbox highlight, overridden if any of the below groups are specified
13921393
`OrgTSCheckboxChecked`: A checkbox checked with either `[x]` or `[X]`

lua/orgmode/colors/highlights.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function M.link_ts_highlights()
3030
OrgTSComment = 'Comment',
3131
OrgTSDirective = 'Comment',
3232
OrgTSBlock = 'Comment',
33+
OrgTSLatex = 'Statement',
3334
}
3435

3536
for src, def in pairs(links) do

lua/orgmode/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_G.orgmode = _G.orgmode or {}
2-
local ts_revision = 'aeacac619457a187bb202b9dfc58541232ed4a25'
2+
local ts_revision = 'f78edf1ab65c854ef25356c2a96222e87d15c5c5'
33
local setup_ts_grammar_used = false
44
local instance = nil
55

lua/orgmode/org/autocompletion/omni.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local config = require('orgmode.config')
33
local Hyperlinks = require('orgmode.org.hyperlinks')
44

55
local data = {
6-
directives = { '#+title', '#+author', '#+email', '#+name', '#+filetags', '#+archive', '#+options' },
6+
directives = { '#+title', '#+author', '#+email', '#+name', '#+filetags', '#+archive', '#+options', '#+category' },
77
begin_blocks = { '#+begin_src', '#+end_src', '#+begin_example', '#+end_example' },
88
properties = { ':PROPERTIES:', ':END:', ':LOGBOOK:', ':STYLE:', ':REPEAT_TO_STATE:', ':CUSTOM_ID:', ':CATEGORY:' },
99
metadata = { 'DEADLINE:', 'SCHEDULED:', 'CLOSED:' },

lua/orgmode/parser/file.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ function File:_parse_directives()
397397
if directive_name == 'archive' then
398398
self.archive_location = config:parse_archive_location(self.filename, directive.value.text)
399399
end
400+
if directive_name == 'category' then
401+
self.category = directive.value.text
402+
end
400403
end
401404
self.tags = tags
402405
end

queries/org/highlights.scm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
(block "#+begin_" @OrgTSBlock "#+end_" @OrgTSBlock "str" @OrgTSBlock)
1616
(block name: (expr) @OrgTSBlock)
1717
(block parameter: (expr) @OrgTSBlock)
18-
(property_drawer) @OrgTSPropertyDrawer
19-
(drawer) @OrgTSDrawer
20-
(tag) @OrgTSTag
21-
(plan) @OrgTSPlan
22-
(comment) @OrgTSComment
23-
(directive) @OrgTSDirective
18+
(property_drawer) @OrgTSPropertyDrawer
19+
(latex_env) @OrgTSLatex
20+
(drawer) @OrgTSDrawer
21+
(tag) @OrgTSTag
22+
(plan) @OrgTSPlan
23+
(comment) @OrgTSComment
24+
(directive) @OrgTSDirective
2425
(ERROR) @LspDiagnosticsUnderlineError

tests/plenary/org/autocompletion_spec.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ describe('Autocompletion', function()
138138
{ menu = '[Org]', word = '#+filetags' },
139139
{ menu = '[Org]', word = '#+archive' },
140140
{ menu = '[Org]', word = '#+options' },
141+
{ menu = '[Org]', word = '#+category' },
141142
{ menu = '[Org]', word = '#+begin_src' },
142143
{ menu = '[Org]', word = '#+end_src' },
143144
{ menu = '[Org]', word = '#+begin_example' },

0 commit comments

Comments
 (0)