GitXplorerGitXplorer
l

language-generic-config

public
24 stars
17 forks
2 issues

Commits

List of commits on branch master.
Unverified
f1b3398b441c52f2950c235f42c2b3b332c8c7b2

Merge pull request #12 from lee-dohm/standard-js

llee-dohm committed 7 years ago
Verified
c680fe90ad220e6f5bd5d3b68ddf9fc8ba029ea4

:shirt: Fix linter warnings in spec/helpers.js

llee-dohm committed 7 years ago
Verified
74c873404d5a3cb09ed4e9501bb5b35165a36a73

:shirt: Fix linter warnings in spec/automatch.spec.js

llee-dohm committed 7 years ago
Verified
0c87710731e023e53c208639a72d9d1d4727a43c

:shirt: Fix linter warnings in index.js

llee-dohm committed 7 years ago
Verified
ee418adf0742e4b86d610849abfef1409611a097

Add standard JS support

llee-dohm committed 7 years ago
Verified
44cc9f688a5a470dfbd2e8566319b66f517583b2

Convert to backticks for fenced code blocks

llee-dohm committed 7 years ago

README

The README file for this repository.

Generic Config Language

Build Status Package Version Package Downloads Dependency Status

Provides basic syntax highlighting for configuration files that are just composed of comments or non-comments with no particular structure, like .gitignore or .gitattributes files.

Sample configuration

The package supports formats which use # or ; to introduce comments.

Auto-matching "probable" config files

Many generic configs in the wild use no standard file extension, or any extension at all. The package is able to match unfamiliar configs as long as they contain "comment-like" lines:

# When updating this file, etc/e/eterm-colour should be
# rebuild with "make e/eterm-colour" in the etc directory.
cub=\E[%p1%dD,
kcud1=\EOB,
cud=\E[%p1%dB,#refs104
#cuf1=\E[C, # HACK: refs#104
setaf=\E[%p1%{30}%+%dm,
cuf=\E[%p1%dC,
#rmcup=\E[?47l,
# rs2 may need to be added
smcup=\E[?47h,

With the package's default configuration, the above code will look like this:

Sample 2

You can customise how the package interprets "comment-like" by tweaking the automatchPattern field in the package settings. By default, the grammar is activated for any unknown file containing lines which start with # or ; :

# Comment
#1 - Not
#2 - considered
#3 - comments
; Comment
;1 - As above…

License

MIT