Skip to content

Conversation

@Alice39s
Copy link

@Alice39s Alice39s commented Aug 2, 2025

Summary

This PR introduces syntax highlighting support for the BIRD2 configuration language via .conf files used by the BIRD Internet Routing Daemon.

Unlike simpler configuration models (e.g., INI or Nginx), BIRD employs a uniquely intricate paradigm with distinct implementation challenges. We address this by adding a textmate grammar with precise scoping for:

  • Protocol definitions
  • Filter functions
  • Route maps
  • Other core BIRD2 constructs

Motivation

BIRD2 powers critical Internet infrastructure at scale, including:

  • AMS-IX – 870+ ASNs, 14Tb/s traffic (ref)
  • LINX – 1,000+ BGP sessions on v2.13 (ref)
  • Cloudflare – Anycast routing across all edge PoPs (ref)

Despite its critical role in major Internet infrastructure, editors like VSCode and Shiki lack native grammar support for BIRD2 configurations. This PR aims to fill that gap.

References

@netlify
Copy link

netlify bot commented Aug 2, 2025

Deploy Preview for textmate-grammars-themes ready!

Name Link
🔨 Latest commit 0364fdb
🔍 Latest deploy log https://app.netlify.com/projects/textmate-grammars-themes/deploys/68d60ccd7ffc4e00084da5ee
😎 Deploy Preview https://deploy-preview-149--textmate-grammars-themes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants