-
-
Notifications
You must be signed in to change notification settings - Fork 86
Tree-sitter integration for better syntax highlighting #5067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jtyr
wants to merge
16
commits into
MidnightCommander:master
Choose a base branch
from
jtyr:jtyr-ts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
573b60e
Tree-sitter integration for better syntax highlighting
jtyr 7bec7d3
Adding missing Makefile.in and fixing installation
jtyr ecb2827
Auto-generate Makefile
jtyr f7737c5
Separating TS syntax handling
jtyr f00ca28
Moving to separate struct
jtyr d34731e
Extracting to separate m4 file
jtyr b8f404e
Removing TS-unrelated fixes
jtyr 4e6eebc
Example of adding an extra language
jtyr 36fee42
More languages
jtyr 67616c9
Syntax matching
jtyr 0300b64
Fixing HCL and Terraform syntax; updating grammars bundle version
jtyr f9bfe97
Reverting LICENSE symlink and removing block file fix
jtyr 08c349f
Use staticly built objects from grammars repo
jtyr edbb4db
Implementing code review comments
jtyr 7a12b37
New distribution model
jtyr 94c23e5
Use different fg/bg separator
jtyr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,7 @@ dnl that ar cannot be found and linking via libtool will fail at a later stage | |
| AC_CHECK_TOOLS([AR], [ar gar]) | ||
|
|
||
| AC_PROG_CC | ||
| AC_PROG_CXX | ||
|
|
||
| # AC_PROG_CC doesn't try enabling C99 in autoconf 2.69 and below, but | ||
| # AC_PROG_CC_C99 is deprecated in newer ones. In autoconf 2.70+ both | ||
|
|
@@ -536,11 +537,18 @@ AC_SUBST(CPPFLAGS) | |
| AC_SUBST(LDFLAGS) | ||
| AC_SUBST(LIBS) | ||
|
|
||
| dnl ############################################################################ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please move this to the separate m4-file.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have moved that to a separate m4 file. |
||
| dnl Syntax highlighting system selection | ||
| dnl ############################################################################ | ||
|
|
||
| mc_WITH_TREE_SITTER | ||
|
|
||
| AM_CONDITIONAL(USE_NLS, [test x"$USE_NLS" = xyes]) | ||
| AM_CONDITIONAL(USE_MAINTAINER_MODE, [test x"$USE_MAINTAINER_MODE" = xyes]) | ||
| AM_CONDITIONAL(USE_SCREEN_SLANG, [test x"$with_screen" = xslang]) | ||
| AM_CONDITIONAL(USE_INTERNAL_EDIT, [test x"$use_internal_edit" = xyes ]) | ||
| AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ]) | ||
| AM_CONDITIONAL(USE_TREE_SITTER, [test x"$with_tree_sitter" = xyes]) | ||
| AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"]) | ||
| AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"]) | ||
| dnl Clarify do we really need GModule | ||
|
|
@@ -654,6 +662,7 @@ lib/vfs/Makefile | |
| lib/widget/Makefile | ||
|
|
||
| misc/syntax/Makefile | ||
| misc/syntax-ts/Makefile | ||
|
|
||
| doc/Makefile | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| DIST_SUBDIRS = hints man hlp | ||
| SUBDIRS = hints man hlp | ||
|
|
||
| EXTRA_DIST = FAQ HACKING INSTALL | ||
| EXTRA_DIST = FAQ HACKING INSTALL TREE-SITTER |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need C++ compiler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is needed for the SQL grammar which has a C++ scanner.