Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omarawd7/node-colors-autocomplete

A prototype implementation of a language server, This language server provides language feature code completion of node colors.
https://github.com/omarawd7/node-colors-autocomplete

Last synced: about 1 month ago
JSON representation

A prototype implementation of a language server, This language server provides language feature code completion of node colors.

Awesome Lists containing this project

README

        

# Node-colors-autocomplete
# *Description*:

This language server provides code completion features for NodeC documents, specifically focusing on assisting with completion of "nodes" property based on "nodecolors" property.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# *Example 1*:

nodecolors:red

nodes:[]

Now The at nodes:[] auto completes to the strings given at nodecolors to be as the following:

nodecolors:red

nodes:[red]

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# *Example 2*:

nodecolors:red, green

nodes: [red]

Now The at nodes:[red] auto completes to the strings given at nodecolors to be as the following:

nodecolors: red, green

nodes: [red, green]

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# *Completion Logic*:

Analyzes document content to extract "nodecolors" and "nodes" values.

Suggests available node colors for completion based on context.

Considers colors already used in "nodes" to avoid duplicates.