profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/srikumarks/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

srikumarks/cspjs 198

CSP-style tasks and channels for JS using a sweetjs macro.

srikumarks/carnot 7

Carnatic Music Notation rendering engine

srikumarks/df 7

Code for understanding automatic differentiation.

cggaurav/raagadhar 2

The Open Indian Classical Music Platform

lonce/rhythm-engine 2

JS port of Pete Kellock's "Rhythm Engine"

srikumarks/audiolib.js 1

audiolib.js is a powerful audio tools library for javascript.

srikumarks/bhedam 1

An interface for exploring raga graha bhedams.

issue commentsphinx-doc/sphinx

C-language code-block lexing error with specific comment syntax "//@"

Thank you @jakobandersen. Reposted here - https://github.com/pygments/pygments/issues/1891

srikumarks

comment created time in 20 days

issue openedpygments/pygments

C-language code-block lexing error with specific comment syntax "//@"

I'd reported this originally here - https://github.com/sphinx-doc/sphinx/issues/9548 - but it turns out that Sphinx is using pygments highlighter which independently shows the same behaviour I reported there. So copying the issue over.

Describe the bug

The following code block causes a C-language "lexing error" to be reported and highlighting skipped.

.. code-block :: c

    int div(int x, int y)
    //@requires y >= 0;
    {
        return x / y;
    }

On the other hand, if I just remove the trailing semicolon on the comment line, the error goes away. i.e. the below version lexes fine.

.. code-block :: c

    int div(int x, int y)
    //@requires y >= 0
    {
        return x / y;
    }

.. and the following lexes fine too -

.. code-block :: c

    int div(int x, int y)
    // requires y >= 0;
    {
         return x / y;
    }

Since the line in question is a comment line, what characters feature within the comment line should not be of any consequence for lexing the block as "C".

How to Reproduce

Include the example code blocks shown in any rst documentation processed by Sphinx. The following note by @jakobandersen shows how to reproduce it using pygmentize.

Thanks for reporting, though the lexing and highlighting is under the hood done with Pygments. It seems that running pygmentize -l c -F raiseonerror test.c emulates what Sphinx does, and for your first example I indeed get an error:

*** Error while highlighting:
pygments.filters.ErrorToken: @
   (file "/home/jla/.local/lib/python3.8/site-packages/pygments/filters/__init__.py", line 782, in filter)
*** If this is a bug you want to report, please rerun with -v.
int div(int x, int y)

Expected behavior

All the indicated C-language code blocks should lex fine since the line in question is a comment line.

created time in 20 days

issue openedsphinx-doc/sphinx

C-language code-block lexing error with specific comment syntax "//@"

Describe the bug

The following code block causes a C-language "lexing error" to be reported and highlighting skipped.

.. code-block :: c

    int div(int x, int y)
    //@requires y >= 0;
    {
        return x / y;
    }

On the other hand, if I just remove the trailing semicolon on the comment line, the error goes away. i.e. the below version lexes fine.

.. code-block :: c

    int div(int x, int y)
    //@requires y >= 0
    {
        return x / y;
    }

.. and the following lexes fine too -

.. code-block :: c

    int div(int x, int y)
    // requires y >= 0;
    {
         return x / y;
    }

Since the line in question is a comment line, what characters feature within the comment line should not be of any consequence for lexing the block as "C".

How to Reproduce

Include the example code blocks shown in any rat documentation processed by Sphinx.

Expected behavior

All the indicated C-language code blocks should lex fine since the line in question is a comment line.

Your project

not required as examples given in doc

Screenshots

No response

OS

MacOS

Python version

3.8.8

Sphinx version

4.0.1

Sphinx extensions

none

Extra tools

none

Additional context

Tested using project created by sphinx-quickstart

created time in a month

startedFluxML/FastAI.jl

started time in 2 months

push eventsrikumarks/inai

Srikumar

commit sha 7dbcda226eb8e2341ce7695d23a495ff5cdc82fb

Merge pull request #10 from srikumarks/master Minor changes

view details

Srikumar Subramanian

commit sha abd30996f9a18d2c5406d0e32700693032e69294

Reliminary Dockerfile to get up and running quickly. Build command - DOCKER_BUILDKIT=1 docker build -t inaid . The DOCKER_BUILDKIT=1 will permit the yarn cache to be reused between builds. Note that the build is for dev currently and not for prod, as it includes some build tools too, like make.

view details

Srikumar K. S

commit sha 03ce646a4a61b690339e83c6fea08d070101c777

The "static" directory is expected to be empty. So no point copying it. Just mkdir it.

view details

Srikumar K. S

commit sha a5537fbac606ef9635159137634879504dbcb6ee

missed file in commit

view details

Srikumar K. S

commit sha 9a1dbd1f1ad2be64365d92fe411512a4c3c26f8f

Fix to get docker build working

view details

Srikumar K. S

commit sha 720de9509c52dc7dba521112a65ccb38614eb060

Added generated file to gitignore

view details

Srikumar K. S

commit sha 7eeb1f185e165130eae479ed3047ae95834887bf

Added quick start note about running inai as a container

view details

Srikumar K. S

commit sha 1ff992f821b18246c88a75deef311f5a7cb354be

Modified the admin service to accept requests from any host since inai is now containerized.

view details

Srikumar K. S

commit sha 1d4a2a3d630e856bc95306c3b3a342f25f5562e6

To use inai in a container, the redis codebase server also needs to be exposed.

view details

Srikumar K. S

commit sha b04ff31a79258e31a5995c4ecb0d49e31ce76af6

Made code run under "node" user instead of "root".

view details

Srikumar K. S

commit sha 1589f4f62c6c357acb800b1c5f42b4160c6fa442

Updated README with dockerization instructions

view details

Srikumar K. S

commit sha 8df0845bb04591735d8efe02a9e5f850f31f11da

Added note about the app sample end point

view details

Srikumar K. S

commit sha d49df3f9acb80ff91b6d69c5f8897dc26b9e6740

Upgraded packages google-auth-client and husky

view details

Srikumar

commit sha 444c785b964aa1efdb63f2c0cda1d7ef10b69e16

Edited notes about deploy.sh

view details

Srikumar K. S

commit sha 1d79e3fae8dd1afd684e17de785aa5be8bb09b47

Added "materialize" service if you want to use materialize instead of tailwind.

view details

Srikumar K. S

commit sha 7ceb1cec1bcdd7f0b7df66c1b72f67a2d338f0b9

Added media="screeen,projection" to the css.

view details

Srikumar K. S

commit sha 4b6dcfb16b7325a2198d3dd9fed57a089962c4c7

Git hooks to do formatting before commit.

view details

Srikumar K. S

commit sha ca7cf03ed89400643b9ed3c1bc4fe18081f35dc4

Switched bundling to esbuild for speed. Browserify still remains for dependency analysis, and is the primary thing now that slows build. Will be replacing it with metadata generated by esbuild in the coming updates.

view details

push time in 3 months

issue commenttanksuzuki/angels-ladder

Incompatible with hugo v0.84.x

Opened PR #24 to address this.

srikumarks

comment created time in 3 months

PR opened tanksuzuki/angels-ladder

Fixes #23 - Compatibility with hugo v0.84.x

The Params.mainSections needs to be checked now to determine which posts to include in the main listing as well as in the pagination at the bottom of the page.

+4 -3

0 comment

1 changed file

pr created time in 3 months

issue openedtanksuzuki/angels-ladder

Incompatible with hugo v0.84.x

The mainSections property needs to be used in layouts/index.html to render the top level page. Else a single "Posts" collection shows up which needs to be clicked on to see all posts.

created time in 3 months

create barnchsrikumarks/angels-ladder

branch : issue23

created branch time in 3 months

fork srikumarks/angels-ladder

[Unmaintained] Angel's Ladder is a simple blog theme for Hugo.

fork in 3 months