From 381492d247ae1f7a8921d79b3cb019c971e5b6c3 Mon Sep 17 00:00:00 2001 From: Karanbir Date: Wed, 9 Oct 2024 11:02:15 -0400 Subject: [PATCH] docs: delete atom language server from editor reference (#7111) Delete atom language server from editor reference Signed-off-by: Karanbir --- docs/content/editor-and-ide-support.md | 23 +- misc/syntax/atom/README.md | 12 - misc/syntax/atom/language-rego/README.md | 4 - .../atom/language-rego/grammars/rego.cson | 279 ------------------ misc/syntax/atom/language-rego/package.json | 14 - .../language-rego/settings/language-rego.cson | 3 - 6 files changed, 11 insertions(+), 324 deletions(-) delete mode 100644 misc/syntax/atom/README.md delete mode 100644 misc/syntax/atom/language-rego/README.md delete mode 100644 misc/syntax/atom/language-rego/grammars/rego.cson delete mode 100644 misc/syntax/atom/language-rego/package.json delete mode 100644 misc/syntax/atom/language-rego/settings/language-rego.cson diff --git a/docs/content/editor-and-ide-support.md b/docs/content/editor-and-ide-support.md index a6527ad2f5..e25d057071 100644 --- a/docs/content/editor-and-ide-support.md +++ b/docs/content/editor-and-ide-support.md @@ -9,18 +9,17 @@ evaluation, policy coverage, and more. ## Integrations -| Editor | Link | Note | -| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| Visual Studio Code | [marketplace.visualstudio.com/items?itemName=tsandall.opa](https://marketplace.visualstudio.com/items?itemName=tsandall.opa) | Supports Language Server and Debug Adapter | -| Neovim | Syntax highlighting [tree-sitter-rego](https://github.com/FallenAngel97/tree-sitter-rego), Language server [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#regal), Debugger [nvim-dap](https://github.com/mfussenegger/nvim-dap) + [nvim-dap-rego](https://github.com/rinx/nvim-dap-rego) | Supports Language Server and Debug Adapter | -| Zed | [github.com/StyraInc/zed-rego](https://github.com/StyraInc/zed-rego) | Supports Language Server | -| IntelliJ IDEA | [github.com/open-policy-agent/opa-idea-plugin](https://github.com/open-policy-agent/opa-idea-plugin) | | -| Vim | [github.com/tsandall/vim-rego](https://github.com/tsandall/vim-rego) | | -| Emacs | [github.com/psibi/rego-mode](https://github.com/psibi/rego-mode) | | -| Nano | [github.com/scopatz/nanorc](https://github.com/scopatz/nanorc) | | -| Sublime Text | [github.com/open-policy-agent/opa/tree/main/misc/syntax/sublime](https://github.com/open-policy-agent/opa/tree/main/misc/syntax/sublime) | | -| TextMate | [github.com/open-policy-agent/opa/tree/main/misc/syntax/textmate](https://github.com/open-policy-agent/opa/tree/main/misc/syntax/textmate) | | -| Atom | [github.com/open-policy-agent/opa/tree/main/misc/syntax/atom](https://github.com/open-policy-agent/opa/tree/main/misc/syntax/atom) | The Atom editor is [no longer maintained](https://github.blog/news-insights/product-news/sunsetting-atom/). | +| Editor | Link | Note | +| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | +| Visual Studio Code | [marketplace.visualstudio.com/items?itemName=tsandall.opa](https://marketplace.visualstudio.com/items?itemName=tsandall.opa) | Supports Language Server and Debug Adapter | +| Neovim | Syntax highlighting [tree-sitter-rego](https://github.com/FallenAngel97/tree-sitter-rego), Language server [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#regal), Debugger [nvim-dap](https://github.com/mfussenegger/nvim-dap) + [nvim-dap-rego](https://github.com/rinx/nvim-dap-rego) | Supports Language Server and Debug Adapter | +| Zed | [github.com/StyraInc/zed-rego](https://github.com/StyraInc/zed-rego) | Supports Language Server | +| IntelliJ IDEA | [github.com/open-policy-agent/opa-idea-plugin](https://github.com/open-policy-agent/opa-idea-plugin) | | +| Vim | [github.com/tsandall/vim-rego](https://github.com/tsandall/vim-rego) | | +| Emacs | [github.com/psibi/rego-mode](https://github.com/psibi/rego-mode) | | +| Nano | [github.com/scopatz/nanorc](https://github.com/scopatz/nanorc) | | +| Sublime Text | [github.com/open-policy-agent/opa/tree/main/misc/syntax/sublime](https://github.com/open-policy-agent/opa/tree/main/misc/syntax/sublime) | | +| TextMate | [github.com/open-policy-agent/opa/tree/main/misc/syntax/textmate](https://github.com/open-policy-agent/opa/tree/main/misc/syntax/textmate) | | {{< info >}} **Your editor missing? Built a Rego integration for your editor?** Drop us a diff --git a/misc/syntax/atom/README.md b/misc/syntax/atom/README.md deleted file mode 100644 index f3cb5466e7..0000000000 --- a/misc/syntax/atom/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# rego README - -This is an Atom.io package for syntax highlighting Rego, the open-policy-agent (OPA) policy language. - -## Installation - -To install, copy the `language-rego` folder to the `~/.atom/packages` folder. - -## Auto-generation - -You can regenerate this folder from the `../textmate/Rego.tmLanguage` file by following -these [instructions](http://flight-manual.atom.io/hacking-atom/sections/converting-from-textmate/). diff --git a/misc/syntax/atom/language-rego/README.md b/misc/syntax/atom/language-rego/README.md deleted file mode 100644 index 364a45c76b..0000000000 --- a/misc/syntax/atom/language-rego/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# language-rego package - -Syntax highlighting for Rego, the open-policy-agent (OPA) policy language - diff --git a/misc/syntax/atom/language-rego/grammars/rego.cson b/misc/syntax/atom/language-rego/grammars/rego.cson deleted file mode 100644 index 60bb600242..0000000000 --- a/misc/syntax/atom/language-rego/grammars/rego.cson +++ /dev/null @@ -1,279 +0,0 @@ -fileTypes: [ - "Rego" -] -name: "Rego" -patterns: [ - { - include: "#comment" - } - { - include: "#keyword" - } - { - include: "#operator" - } - { - include: "#head" - } - { - include: "#query" - } - { - include: "#expr" - } - { - include: "#term" - } -] -repository: - array: - begin: "\\[" - beginCaptures: - "0": - name: "punctuation.definition.array.begin.rego" - end: "\\]" - endCaptures: - "0": - name: "punctuation.definition.array.end.rego" - name: "meta.structure.array.rego" - patterns: [ - { - include: "#term" - } - { - match: "," - name: "punctuation.separator.array.rego" - } - { - match: "[^\\s\\]]" - name: "invalid.illegal.expected-array-separator.rego" - } - ] - builtin_call: - captures: - "1": - name: "punctuation.whitespace.function-call.leading.rego" - "2": - name: "support.function.any-method.rego" - "3": - name: "punctuation.definition.parameters.rego" - match: ''' - (?x) (?:(?|<|<\\=|>\\=" - name: "keyword.control.logical.$1.rego" - } - ] - query: - name: "meta.structure.query.rego" - patterns: [ - { - include: "#expr" - } - { - match: "," - name: "punctuation.separator.query.rego" - } - ] - set: - begin: "\\{" - beginCaptures: - "0": - name: "punctuation.definition.array.begin.rego" - end: "\\}" - endCaptures: - "0": - name: "punctuation.definition.array.end.rego" - name: "meta.structure.array.rego" - patterns: [ - { - include: "#term" - } - { - match: "," - name: "punctuation.separator.array.rego" - } - { - match: "[^\\s\\]]" - name: "invalid.illegal.expected-array-separator.rego" - } - ] - string: - begin: "\"" - beginCaptures: - "0": - name: "punctuation.definition.string.begin.rego" - end: "\"" - endCaptures: - "0": - name: "punctuation.definition.string.end.rego" - name: "string.quoted.double.rego" - patterns: [ - { - match: ''' - (?x: # turn on extended mode - \\\\ # a literal backslash - (?: # ...followed by... - ["\\\\/bfnrt] # one of these characters - | # ...or... - u # a u - [0-9a-fA-F]{4} # and four hex digits - ) - ) - ''' - name: "constant.character.escape.rego" - } - { - match: "\\\\." - name: "invalid.illegal.unrecognized-string-escape.rego" - } - ] - term: - patterns: [ - { - include: "#constant" - } - { - include: "#string" - } - { - include: "#number" - } - { - include: "#array" - } - { - include: "#emptyobject" - } - { - include: "#object" - } - { - include: "#variable" - } - ] - variable: - match: "\\b[[:alpha:]_][[:alnum:]_]*\\b" - name: "meta.identifier.rego" -scopeName: "source.rego" diff --git a/misc/syntax/atom/language-rego/package.json b/misc/syntax/atom/language-rego/package.json deleted file mode 100644 index f23b5fa75c..0000000000 --- a/misc/syntax/atom/language-rego/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "language-rego", - "version": "1.0.0", - "description": "Syntax highlighting for Rego, the open-policy-agent (OPA) policy language", - "keywords": [ - ], - "repository": "https://github.com/open-policy-agent/opa", - "license": "Apache 2", - "engines": { - "atom": ">=1.0.0 <2.0.0" - }, - "dependencies": { - } -} diff --git a/misc/syntax/atom/language-rego/settings/language-rego.cson b/misc/syntax/atom/language-rego/settings/language-rego.cson deleted file mode 100644 index 09912740b0..0000000000 --- a/misc/syntax/atom/language-rego/settings/language-rego.cson +++ /dev/null @@ -1,3 +0,0 @@ -'.source.rego': - 'editor': - 'commentStart': '# '