alecthomas
Repos
143
Followers
1086
Following
5

A parser library for Go

2743
153

Kong is a command-line parser for Go

1181
102

A general purpose syntax highlighter in pure Go

3541
303

Hermit manages isolated, self-bootstrapping sets of tools in software projects.

382
27

EntityX - A fast, type-safe C++ Entity-Component system

2020
278

Python's repr() for Go

122
14

Events

Created at 3 hours ago

feat: support analyser excludes

Created at 13 hours ago

feat: initial commit

Created at 1 day ago

feat: initial commit

Created at 1 day ago

feat: initial commit

Created at 1 day ago
create branch
alecthomas create branch master
Created at 1 day ago
create repository
alecthomas create repository
Created at 1 day ago

update pivit to 0.2.0

Created at 1 day ago
pull request closed
update pivit to 0.2.0
Created at 1 day ago

feat: add filecontent named mapper

Created at 2 days ago
issue comment
`diff` lexer adds new lines

It's a bit of an annoying configuration option if I'm honest.

Created at 3 days ago
issue comment
`diff` lexer adds new lines

Yes, that setting pre-processes the raw text, adding newlines if there aren't any. I believe the intention from Pygments is to support lexer rules that require a newline to work correctly.

Created at 3 days ago
issue comment
`diff` lexer adds new lines

That's deliberate due to https://github.com/alecthomas/chroma/blob/master/lexers/embedded/diff.xml#L10 Which is inherited from Pygments here: https://pygments.org/docs/lexers/

Chroma is not really intended for highlighting fragments, so it doesn't surprise me too much that some processing is required.

Created at 3 days ago
started
Created at 4 days ago
create tag
alecthomas create tag v0.32.0
Created at 4 days ago

feat: support search across description

Created at 4 days ago
Created at 4 days ago

Add homepage for enumer

Created at 5 days ago
Created at 5 days ago
closed issue
Highlight specific lines

What problem does this feature solve?

MDX supports highlighting specific lines of code https://nextra.vercel.app/features/mdx

This is very useful for tutorials, where we need to draw the attention of the user to specific lines of code that may have changed.

Please check the Chroma README and command-line tool to ensure this isn't an already solved problem.

What feature do you propose?

Based on this syntax

jsx highlight=4,6-8 import useSWR from 'swr' function Profile() { const { data, error } = useSWR('/api/user', fetcher) if (error) return <div>failed to load</div> if (!data) return <div>loading...</div> return <div>hello {data.name}!</div> }

allow specific lines to be highlighted

Created at 5 days ago
issue comment
Highlight specific lines

Chroma already supports this... run chroma --help and look for "highlight"

Created at 5 days ago

Add nats-server

Created at 6 days ago

fix: ensure pointers can be detected as bools

This required adding a BoolMapperExt interface.

Created at 6 days ago

Add some missing digests.

Created at 6 days ago

Switch enumer package

Created at 6 days ago

Use enumer builds rather than our own

Created at 6 days ago
started
Created at 6 days ago
closed issue
On mac with zsh, you need gmake so that the "source" command works in your makefiles

on a mac with zsh you need gmake ( not make ) , so that source command works in your makefiles.

maybe worth adding this to https://cashapp.github.io/hermit/usage/get-started/#initialising-a-project

then the init works:

	# add to zsh so the hermit hooks can fire.
	hermit shell-hooks --zsh

	# create a local bin with the hermit stuff.
	hermit init

	# loads the env.
	source ./bin/activate-hermit
Created at 6 days ago
issue comment
On mac with zsh, you need gmake so that the "source" command works in your makefiles

It won't be necessary if users activate the env. I typically also put an assertion in the Makefile checking for that it is being executed with the correct version of make.

Created at 6 days ago