docs: delete atom language server from editor reference (#7111)

Delete atom language server from editor reference

Signed-off-by: Karanbir <karanbirsingh1161@gmail.com>
This commit is contained in:
Karanbir
2024-10-09 11:02:15 -04:00
committed by GitHub
parent 9080232a9e
commit 381492d247
6 changed files with 11 additions and 324 deletions
+11 -12
View File
@@ -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
-12
View File
@@ -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/).
-4
View File
@@ -1,4 +0,0 @@
# language-rego package
Syntax highlighting for Rego, the open-policy-agent (OPA) policy language
@@ -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) (?:(?<!\\w)(\\s+))?
(\\b
(?:[A-Za-z_][A-Za-z0-9_]*+\\b) # actual name
)\\s*(\\()
'''
name: "meta.function-call.rego"
comment:
captures:
"1":
name: "punctuation.definition.comment.rego"
match: "(#).*$\\n?"
name: "comment.line.number-sign.rego"
constant:
match: "\\b(?:true|false|null)\\b"
name: "constant.language.rego"
emptyobject:
captures:
"1":
name: "punctuation.definition.dictionary.begin.rego"
"2":
name: "meta.empty-dictionary.rego"
"3":
name: "punctuation.definition.dictionary.end.rego"
match: "(\\{)(\\s*(\\}))"
name: "meta.structure.dictionary.rego"
expr:
patterns: [
{
include: "#term"
}
{
include: "#builtin_call"
}
{
include: "#operator"
}
]
head:
begin: "^(default\s+)?([[:alpha:]_][[:alnum:]_]*)"
beginCaptures:
"1":
name: "keyword.control.import.$1.rego"
"2":
name: "storage.type.function.rego"
end: "(=|:-)"
name: "meta.function.rego"
patterns: [
{
include: "#term"
}
]
keyword:
match: "\\b(?:(package|import|with|as))\\b"
name: "keyword.control.import.$1.rego"
number:
match: '''
(?x: # turn on extended mode
-? # an optional minus
(?:
0 # a zero
| # ...or...
[1-9] # a 1-9 character
\\d* # followed by zero or more digits
)
(?:
(?:
\\. # a period
\\d+ # followed by one or more digits
)?
(?:
[eE] # an e character
[+-]? # followed by an option +/-
\\d+ # followed by one or more digits
)? # make exponent optional
)? # make decimal portion optional
)
'''
name: "constant.numeric.rego"
object:
begin: "(\\{)"
beginCaptures:
"1":
name: "punctuation.definition.dictionary.begin.rego"
end: "(\\})"
endCaptures:
"1":
name: "punctuation.definition.dictionary.end.rego"
name: "meta.structure.dictionary.rego"
patterns: [
{
begin: "(?<=\\{|\\,|^)\\s*(?![\\},])"
contentName: "meta.structure.dictionary.key.rego"
end: "\\s*(?:(?=\\})|(\\:))"
endCaptures:
"1":
name: "punctuation.separator.valuepair.dictionary.rego"
patterns: [
{
include: "$self"
}
]
}
{
begin: "(?<=\\:|^)\\s*"
contentName: "meta.structure.dictionary.value.rego"
end: "\\s*(?:(?=\\})|(,))"
endCaptures:
"1":
name: "punctuation.separator.dictionary.rego"
patterns: [
{
include: "$self"
}
]
}
]
operator:
patterns: [
{
match: "\\b(?:not)\\b"
name: "keyword.control.logical.$1.rego"
}
{
match: "\\=|\\!\\=|>|<|<\\=|>\\="
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"
@@ -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": {
}
}
@@ -1,3 +0,0 @@
'.source.rego':
'editor':
'commentStart': '# '