<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gfx</author_name>
  <author_url>https://blog.hatena.ne.jp/gfx/</author_url>
  <blog_title>Islands in the byte stream</blog_title>
  <blog_url>https://gfx.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>github.com digdag の構文を追加するにあたって、Ruby製syntax highlighterであるところのRougeのlexerの開発方法を調べました。 基本 Rouge lexerはDSLで定義します: https://github.com/jneen/rouge#using-the-lexer-dsl lexerはステートマシンとして振る舞うので、ただのキーワードマッチより遥かに強力で文脈を考慮した字句解析を行えます。 tokenの種類は token.rb に定義されているので、実際の出力はこれを見ながらふさわしいtoken typeを当てていくことになります。 また、l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenablog.com%2Fentry%2F2017%2F06%2F03%2F154021&quot; title=&quot;rougeのlexer開発ワークフロー - Islands in the byte stream&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/g/gfx/20170603/20170603153140.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-03 15:40:21</published>
  <title>rougeのlexer開発ワークフロー</title>
  <type>rich</type>
  <url>https://gfx.hatenablog.com/entry/2017/06/03/154021</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
