Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
textproc/py-mathics-pygments: new port used by math/mathicsscript
This is a lexer and highlighter for Mathematica/Wolfram Language source code using the pygments engine.
- Loading branch information
1 parent
8297b68
commit a2caf64
Showing
5 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Created by: Thierry Thomas <thierry@pompo.net> | ||
|
||
PORTNAME= mathics_pygments | ||
PORTVERSION= 1.0.2 | ||
CATEGORIES= textproc math python | ||
MASTER_SITES= CHEESESHOP | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= thierry@FreeBSD.org | ||
COMMENT= Lexer and highlighter for Mathematica/Wolfram Language source code | ||
|
||
LICENSE= MIT | ||
|
||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}Mathics_Scanner>0:math/py-mathics-scanner | ||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}Mathics_Scanner>0:math/py-mathics-scanner | ||
|
||
#USE_GITHUB= yes | ||
#GH_ACCOUNT= Mathics3 | ||
|
||
USES= python:3.6+ | ||
USE_PYTHON= distutils noflavors | ||
|
||
NO_ARCH= yes | ||
|
||
.include <bsd.port.mk> |
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1622913478 | ||
SHA256 (mathics_pygments-1.0.2.tar.gz) = 1ab9ca84896e841d9b07d5a3b28b82fb8db22e19f5f777bf0f7892cbc80bdb77 | ||
SIZE (mathics_pygments-1.0.2.tar.gz) = 51951 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This is a lexer and highlighter for Mathematica/Wolfram Language source code | ||
using the pygments engine. | ||
|
||
It currently supports: | ||
- All builtin functions in the System context including unicode symbols except | ||
those that use characters from the private unicode space (e.g. \[FormalA]). | ||
- User defined symbols, including those in a context. | ||
- All operators including unicode operators like U+1D70B (pi). | ||
- Comments, including multi line and nested. | ||
- Strings, including multi line and escaped quotes. | ||
- Patterns, slots (including named slots #name introduced in version 10) and | ||
slot sequences. | ||
- Message names (e.g. the ivar in General::ivar) | ||
- Numbers including base notation (e.g. 8 ^^ 23 == 19) and scientific notation | ||
(e.g. 1 *^ 3 == 1000). | ||
- Local variables in Block, With and Module | ||
|
||
WWW: https://mathics.org/ | ||
WWW: http://github.com/Mathics3/mathics-pygments/ |
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__init__.py | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/builtins.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/builtins.cpython-%%PYTHON_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/lexer.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/lexer.cpython-%%PYTHON_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/style.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/style.cpython-%%PYTHON_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/builtins.py | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/data/mma-tables.json | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/lexer.py | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/style.py | ||
%%PYTHON_SITELIBDIR%%/mathics_pygments/version.py |