-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
base: master
Are you sure you want to change the base?
Changes from 13 commits
573b60e
7bec7d3
ecb2827
f7737c5
f00ca28
d34731e
b8f404e
4e6eebc
36fee42
67616c9
0300b64
f9bfe97
08c349f
edbb4db
7a12b37
94c23e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Large diffs are not rendered by default.
| 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,19 @@ 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(TREE_SITTER_STATIC, [test x"$with_tree_sitter" = xyes -a x"$with_tree_sitter_static" = xyes]) | ||
| AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"]) | ||
| AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"]) | ||
| dnl Clarify do we really need GModule | ||
|
|
@@ -582,6 +591,7 @@ misc/mc.ext.ini | |
| src/Makefile | ||
| src/consaver/Makefile | ||
| src/editor/Makefile | ||
| src/editor/ts-grammars/Makefile | ||
| src/man2hlp/Makefile | ||
| src/subshell/Makefile | ||
| src/viewer/Makefile | ||
|
|
@@ -654,6 +664,7 @@ lib/vfs/Makefile | |
| lib/widget/Makefile | ||
|
|
||
| misc/syntax/Makefile | ||
| misc/syntax-ts/Makefile | ||
|
|
||
| doc/Makefile | ||
|
|
||
|
|
||
| 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 |
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.