Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foorest-ProtoType

This is a LSP (Language Server Protocal) prototype built based on markdown-oxide to:

  • Get myself a basic understanding of LSP;
  • Only provide backlinks for text files (with .test extension).

It differs from markdown-oxide mainly in:

  • Only support [[...]] and ((...)) styled links (see Grammar for details), any codes not related to this are removed;
  • Some codes modified to be clearer to me:
    • Some structs and enums in source code renamed, e.g. Reference and Referenceable are now Knot and KnotAble;
    • Some codes (mainly the Completer part) refactored. Files in Vault are splitted.

Grammar

This LSP only supports files with .test extension, and only recognize links with the following formats:

Link Type Data in Source Code Full Form Short Form
To File Knot::ToMyFile [[f|file_name]] [[file_name]]
To Text Knot::ToAnchor [[d|anchor_name]] ((anchor_name))
Text to Link struct Anchor [[j|anchor_name]] ((:anchor_name))

License

Most codes in this repo come from markdown-oxide, see markdown-oxide and its license!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages